[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

@ -12,3 +12,4 @@ q52a5kehxx6k3my3wtguijbtlq
dibpsddlyh53wou3po54dx4dte dibpsddlyh53wou3po54dx4dte
4xrfjvhl5mc7fkvjpb42bfpr5m 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) 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 = "" post.FrontMatter.Title = ""
} }
if post.FrontMatter.Title == "" && ref.Name != "" { if post.FrontMatter.Title == "" && ref.Name != "" {