Commit graph

121 commits

Author SHA1 Message Date
Andrew Godwin
c93a27e418 Capture and don't thrash on badly formatted AP messages 2023-07-07 16:29:12 -06:00
Andrew Godwin
7f483af8d3 Rework Stator to use a next field and no async 2023-07-07 15:14:06 -06:00
Karthik Balakrishnan
68dc2dc9ed
Use post id to generate summary class (#583)
Removes the "expand linked CWs" feature for now.
2023-05-20 01:02:40 -06:00
Andrew Godwin
888f4ad36c Move from index_together to indexes 2023-05-13 11:30:42 -06:00
Christof Dorner
d6c9ba0819
Pinned posts (#561) 2023-05-13 10:01:27 -06:00
Andrew Godwin
709dc86162 Fixed #559: Trim hashtags to 100 chars or less 2023-05-03 23:12:28 -06:00
Andrew Godwin
8f57aa5f37
UI/Domains Refactor
Redoes the UI to remove timelines, promote domains, and a lot of other things to support the refactor.
2023-05-03 22:42:37 -06:00
Christof Dorner
7d1558a2ab
Support editing media description when editing statuses (#556) 2023-04-11 09:35:36 -06:00
Christof Dorner
79c1be03a6
Add ability to follow hashtags 2023-03-14 15:35:40 -06:00
Dan Watson
cedcc8fa7c
Bookmarks (#537) 2023-03-11 11:17:20 -07:00
Andrew Godwin
1b9cf24d09 Move back to canonicalising public as "as:Public" 2023-03-08 10:11:56 -07:00
Andrew Godwin
afc94f6313 Add in_reply_to index 2023-03-05 10:34:58 -07:00
Humberto Rocha
e382994e73
Polls (#496)
Implement poll AP and API backend
2023-02-15 10:42:56 -07:00
Andrew Godwin
1c5ef675f0 Implement post editing 2023-02-13 19:40:10 -07:00
Andrew Godwin
f7948a55bf Actually do the right indexes in migrations 2023-02-03 22:24:28 -07:00
Andrew Godwin
1ffbb2e860 Fix hashtag extraction on post edit 2023-01-29 18:13:21 -07:00
Andrew Godwin
a6922cb9d6 Move to a new HTML parser/stripper
This removes the use of the EOL'd Bleach, and also integrates hashtag,
mention and emoji searching into one single place.
2023-01-29 17:47:06 -07:00
Michael Manfre
773c9b2afc Ensure expected fields exist for Post.by_ap 2023-01-27 10:52:32 -07:00
Michael Manfre
6437a5aeb7 Properly handle Author targeting blocks 2023-01-27 10:52:32 -07:00
Michael Manfre
51ae78a33c
Downgrade most fetch related errors to capture_message (#443) 2023-01-19 13:14:55 -07:00
Michael Manfre
77ba7b02b9
Ignore non string attachment mimetypes (#429) 2023-01-16 15:10:03 -07:00
Andrew Godwin
54e7755080 Unfollowing or blocking users purges timeline
Fixes #366
2023-01-16 11:53:40 -07:00
Andrew Godwin
18ab453baa Only fanout remote posts younger than 1 day 2023-01-15 20:57:38 -07:00
Andrew Godwin
b44be55609 Fixed #408: Implemented blocking 2023-01-15 13:35:45 -07:00
Michael Manfre
94fe247b17
Handle errors when a Post references an invalid ancestor (#417) 2023-01-15 10:28:44 -07:00
Andrew Godwin
76076e3387 Flip timelines back to created ordering
Also added in some tracking from where post fetches come from, in case
this re-creates the weird thing where posts emerge from history.
2023-01-14 11:31:57 -07:00
Michael Manfre
81fa9a6d34
Ignore badly formed ActivityPub object data (#406) 2023-01-13 13:44:43 -07:00
Michael Manfre
cb66b9559d
Allow incoming Posts with Bookwyrm Edition tags (#405) 2023-01-13 13:43:37 -07:00
Michael Manfre
18b50ce0e6
Silence a few common errors when fetching (#404)
Downgrade nodeinfo json error to a captured message
2023-01-13 10:53:02 -07:00
Andrew Godwin
e20aea1b9c Fixed #393: Deal with errors unpacking focalPoint 2023-01-11 10:26:01 -07:00
Andrew Godwin
ecec5d6c0a Implement snowflake IDs for some models.
Still needs fixes to the client API paginator.
2023-01-08 18:05:29 -07:00
Andrew Godwin
a875dd7a54 Perform shared inbox delivery 2023-01-08 13:46:40 -07:00
Andrew Godwin
f4a8a96b81 Add first-class deletion support to Stator 2023-01-08 12:43:52 -07:00
Andrew Godwin
eede9682b2 Only deliver posts to active follows 2023-01-08 10:36:44 -07:00
Corry Haines
be7ce6ed62
Improve /api/v1/accounts/{id}/statuses perf (#355) 2023-01-05 22:51:02 -07:00
Michael Manfre
af47e9dfd6
Guess Post attachment mimetype when 'mediaType' field not provided (#360) 2023-01-05 19:48:03 -07:00
Andrew Godwin
e1363f0dac Authors should also see their own posts 2023-01-02 17:21:56 -07:00
Andrew Godwin
110ae452b6 Hide individual posts if people can't see them 2023-01-02 17:15:38 -07:00
Michael Manfre
5f1d7b5253
Add indexes for Stator and some of its common tasks (#332) 2023-01-01 10:58:13 -07:00
Andrew Godwin
15159418df Handle CW classes for non-ascii characters
Fixes #337
2022-12-31 13:52:30 -07:00
Andrew Godwin
0fc8ff4965 Move like/boost/reply counts onto Post model 2022-12-31 13:52:30 -07:00
Andrew Godwin
011c51b3c4 Implement progressive thread parent fetching 2022-12-30 11:48:42 -07:00
Tyler Kennedy
cc7824394b
Fixes for the Toot! client (#248) (#275)
* Various Toot! fixes
* Use a fallback 1x1 pixel image for missing headers, same as Mastodon. The header and header_static are _not_ optional nor nullable according to the spec.
* Try removing some fields which probably shouldn't be set.
* Pagination with next/prev.
2022-12-29 10:31:32 -07:00
Andrew Godwin
b03d9f0e12 Handle deletions of post URIs
Fixes #306
2022-12-28 22:47:28 -07:00
Michael Manfre
4df4f19856
Remove unneeded join from Post to Identity (#301) 2022-12-28 11:14:41 -07:00
Andrew Godwin
e38e985e73 Fall post URLs back to their ID
Fixes #302
2022-12-28 11:12:40 -07:00
Michael Manfre
cf8c5476e6
Hashtag stats are only computed when a Post is edited or updated (#299) 2022-12-27 19:42:38 -07:00
Corry Haines
b53504fe64
Basic OpenGraph support (#267)
Creates an OpenGraph template include in base.html including the basic tags expected on all pages.

Then allows any page to add additional expected tags via `context`.

Currently, profiles and posts are enriched to show complete opengraph metadata, and render correctly in Discord.

Note: This does not show posts in Slack like Twitter/Mastodon do. I believe this is due to Slack preferring oembed when present, which is a mastodon API endpoint we may need to create at some point.
2022-12-26 10:39:33 -07:00
Andrew Godwin
d32a686eb1 Persist CWs in replies, expand linked at once
Fixes #268
2022-12-26 10:03:13 -07:00
Michael Manfre
834282cf54
Remove unused Post.linkify_mentions() (#263) 2022-12-24 15:01:16 -07:00