add mastodon and bluesky to microblog

")
")
{3,}`)

")
%s
",
", p.Source, p.ID))
posted: %s
", p.Timestamp.Format("2006-01-02 15:04")))

")
This commit is contained in:
Travis Shears 2025-10-16 11:35:33 +02:00
parent 86f3ea76b3
commit eca8acddff
Signed by: travisshears
GPG key ID: CB9BF1910F3F7469
3 changed files with 91 additions and 70 deletions

View file

@ -176,7 +176,7 @@ func (c *PocketBaseClient) GetList(
"perPage": {strconv.Itoa(pageSize)},
"sort": {sort},
"skipTotal": {"true"},
"filter": {"source = \"nostr\""},
"filter": {"source = \"nostr\" || source = \"mastodon\" || source = \"blue_sky\""},
// TODO: add additional fields like image and tag?
}
apiURL := fmt.Sprintf("%s/api/collections/%s/records", c.host, collection)