[Facebook] A first photo and some tweeks

This commit is contained in:
JP Hastings-Spital 2024-04-05 13:36:34 +01:00
parent 388644fe8c
commit 6d6a2f2023
4 changed files with 11 additions and 2 deletions

View file

@ -0,0 +1,8 @@
---
media:
- url: media-0.jpg
date: "2009-03-16T14:06:37Z"
tags:
- from-facebook
---
Send me a message (and a quid :p) if you'd like a copy of the full size one!

Binary file not shown.

After

Width:  |  Height:  |  Size: 58 KiB

View file

@ -11,4 +11,5 @@ p3xhhyck2a6s7zvbu6jddxxunu
q52a5kehxx6k3my3wtguijbtlq
dibpsddlyh53wou3po54dx4dte
4xrfjvhl5mc7fkvjpb42bfpr5m
ipyvqr7n332u43qac6ygd3qbmu
ipyvqr7n332u43qac6ygd3qbmu
hws3xuvgtvqkwaeck22sqnij6u

View file

@ -94,7 +94,7 @@ func postize(e PostCheckinPhotoOrVideo, matches []string) (shared.Post, shared.M
post.FrontMatter.References = append(post.FrontMatter.References, ref)
}
if strings.HasSuffix(post.FrontMatter.Title, "shared a link.") {
if strings.HasSuffix(post.FrontMatter.Title, "shared a link.") || strings.HasSuffix(post.FrontMatter.Title, "added a new photo.") {
post.FrontMatter.Title = ""
}
if post.FrontMatter.Title == "" && ref.Name != "" {