Commit graph

36 commits

Author SHA1 Message Date
Christof Dorner 9ca9883e0b Enable finding existing hashtags case-insensitive
We should store hashtags case-sensitive, but ensures that an existing
hashtag with different case are found and re-used. for example,
an existing #BookWyrm hashtag will be found and used even if the
status content is using #bookwyrm.
2023-03-07 13:16:45 +01:00
Christof Dorner f3334b1550 Render hashtag links with data-mention="hashtag" attribute 2023-03-07 13:16:45 +01:00
Christof Dorner 276b255f32 Post-process status.content field to change hashtag URLs
Since the status content already contains rendered HTML when we receive an
ActivityPub inbox message it contains links to the mentioned hashtags on the
originating instance.

To fix this on the receiving instance we need to post-process the status content
after successfully storing the status and its many-to-many fields (the one we're
is the `mention_hashtags`). Post-processing means that we run a regex against the
content to find the anchor tags linking to the originating hashtag and replace the
`href` attribute with the URL to the hashtag page on the receiving (local) instance.
2023-03-07 13:16:45 +01:00
Mouse Reeve b11b810ec9 Use edit date to track is status has been updated 2021-10-15 08:56:07 -07:00
Mouse Reeve b80de929fd Create and view quotation page numbers 2021-09-05 16:00:40 -07:00
Mouse Reeve 4f94d99c88 Use None instead of empty string for activitypub null value 2021-08-28 11:16:39 -07:00
Mouse Reeve bb49d0dc9b Adds test 2021-08-16 13:59:15 -07:00
Mouse Reeve 9e5c7053e9 More pylint fixes 2021-06-18 14:29:24 -07:00
Mouse Reeve d61ba2e474 Fixes review rating serialization 2021-04-29 15:16:51 -07:00
Mouse Reeve 3ade2d3bb1 New version of black, new whitespace 2021-04-26 09:15:42 -07:00
Mouse Reeve 220fb926c9 Rename Image to Document 2021-04-15 16:35:04 -07:00
Mouse Reeve 3bdfc341e4 Runs black 2021-03-08 09:54:02 -08:00
Mouse Reeve ad43e5c83a
Merge branch 'main' into review-rate 2021-03-08 09:48:25 -08:00
Mouse Reeve 70296e760b Runs black 2021-03-08 08:49:10 -08:00
Mouse Reeve 3ba6479e79 hide linter error on override funtion 2021-02-25 15:16:16 -08:00
Mouse Reeve ed7c13531f Merge branch 'main' into review-rate 2021-02-25 10:17:52 -08:00
Mouse Reeve 6d7e063b81 Makes rating field mandatory on ratings 2021-02-25 10:17:24 -08:00
Mouse Reeve b393df8cab Fixes deletion 2021-02-16 09:35:00 -08:00
Mouse Reeve 08c1553e71 Fixes Favs 2021-02-15 21:41:08 -08:00
Mouse Reeve 06feef44ad Merge branch 'main' into review-rate 2021-02-12 18:33:05 -08:00
Mouse Reeve 76e90cb3f6 Fixes remaining test patches 2021-02-08 09:38:28 -08:00
Mouse Reeve 385ec4d70a Adds ReviewRating model
I can't just calling Rating because that would clash with the rating
field
2021-01-01 11:51:52 -08:00
Mouse Reeve 5cadd48aef Fixes rate action 2020-12-17 13:21:21 -08:00
Mouse Reeve 172c36b641 Adds content warning field in status forms 2020-12-16 20:10:50 -08:00
Mouse Reeve aacf5b7ba4 fields for content warnings 2020-12-12 18:00:39 -08:00
Mouse Reeve 3966c84e08 Updates status model and serializer 2020-11-30 14:24:31 -08:00
Mouse Reeve 4ae785a7f7 move image activity to its own file 2020-11-27 17:59:46 -08:00
Mouse Reeve 9b57cfd331 Fixes default lists on activitypub dataclasses 2020-11-25 10:45:39 -08:00
Mouse Reeve c6b8357c77 Make tags optional in activitypub Notes 2020-11-02 16:32:56 -08:00
Mouse Reeve 0cf1838276 Mention and notify users when creating a status 2020-11-01 10:13:51 -08:00
Mouse Reeve 203e526a83 Fixes loading remote books
- saves remote_id correctly
- loads remote books for incoming statuses
2020-10-30 17:04:10 -07:00
Mouse Reeve 8cf7e4405d minor style fixes 2020-10-16 19:13:18 -07:00
Mouse Reeve 704e1092c4 Delete statuses 2020-10-08 12:32:45 -07:00
Mouse Reeve ac9c071388 More consistent naming for generated note activity 2020-09-28 17:27:37 -07:00
Mouse Reeve 39931e2e69 Adds status type for app-generated statuses 2020-09-28 17:26:15 -07:00
Mouse Reeve f77c156733 rename main code directory 2020-09-17 13:30:54 -07:00
Renamed from fedireads/activitypub/note.py (Browse further)