freamon
175094496a
apf part 32: Announce / Undo / Block
2024-11-24 21:43:08 +00:00
freamon
70638c39d1
apf part 31: Announce / Undo / Lock
2024-11-24 21:30:41 +00:00
freamon
381c4a8837
apf part 30: Announce / Undo / Like or Dislike
2024-11-24 21:19:07 +00:00
freamon
4c4fddba80
apf part 29: Announce / Undo / Delete
2024-11-24 21:10:16 +00:00
freamon
51de9ee082
apf part 28: Announce / Block to ban users from communities
2024-11-24 21:01:34 +00:00
freamon
376efadd2d
apf part 27: Announce / Remove mods or sticky
2024-11-24 16:35:10 +00:00
freamon
574e3ae215
apf part 26: Announce / Add mods or sticky
2024-11-24 16:31:20 +00:00
freamon
c226a6806a
apf part 25: Announce / Lock
2024-11-24 16:06:33 +00:00
freamon
c4665ace21
apf part 24: Announce / Flag
2024-11-24 15:17:06 +00:00
freamon
795250e780
apf part 23: Announce / Like or Dislike
2024-11-24 15:16:48 +00:00
freamon
aad494563e
apf part 22: Announce / Delete
2024-11-24 15:16:15 +00:00
freamon
a36d5b42e9
apf part 21: Announce / Create or Update
2024-11-24 15:15:09 +00:00
freamon
ea15cb6079
apf part 20: Undo / Block requests
2024-11-24 15:15:09 +00:00
freamon
30dba0acf2
apf part 19: Undo / Like requests
2024-11-24 15:15:09 +00:00
freamon
e533603f4d
apf part 18: Undo / Delete requests
2024-11-24 15:15:09 +00:00
freamon
7dd8717aa7
apf part 17: Undo / Follow requests
2024-11-24 15:15:09 +00:00
freamon
dccecc15bc
apf part 16: Block requests
2024-11-24 15:15:09 +00:00
freamon
9bca07504e
apf part 15: Flag requests
2024-11-24 15:15:09 +00:00
freamon
5f96034581
apf part 14: Like / Dislike requests
2024-11-24 15:15:09 +00:00
freamon
115bb8426f
apf part 13: Delete requests
2024-11-24 15:15:09 +00:00
freamon
046a15e617
apf part 12: Create/Update requests
2024-11-24 15:15:09 +00:00
freamon
37462f57de
apf part 11: Rejects for follows
2024-11-24 15:15:09 +00:00
freamon
3cc411f512
apf part 10: Accepts for follows
2024-11-24 15:15:09 +00:00
freamon
3d053ae70a
apf part 09: Follow requests
2024-11-24 15:15:09 +00:00
rimu
c135b9c51f
clean up duplicate instances #348
2024-11-24 16:32:22 +13:00
rimu
f9d8ac555a
Merge remote-tracking branch 'origin/main'
2024-11-19 18:54:45 +13:00
freamon
eb7095af56
apf part 08: process requests from users who want to delete their own account
2024-11-18 19:28:37 +00:00
freamon
7e87308663
apf part 07: verify LD signature if HTTP signature fails
2024-11-18 18:44:28 +00:00
freamon
479bbe4dcc
apf part 06: reject any ActivityPub activity from a local actor
2024-11-18 17:47:26 +00:00
freamon
20f17000f5
apf part 05: ignore self-deletes from users that do not exist here
2024-11-18 17:28:41 +00:00
freamon
e57ca1428e
apf part 04: ignore unutilised PeerTube activity
2024-11-18 17:18:09 +00:00
freamon
97af03d3cf
apf part 03: reject unneccessary retries
2024-11-18 17:16:46 +00:00
freamon
cddd102a3d
apf part 02: reject bad JSONs
2024-11-18 16:53:32 +00:00
freamon
fe7791bf4d
apf part 01: add log_incoming_ap function
2024-11-18 15:56:47 +00:00
freamon
5e422131ad
Prefer image in attachment for image posts #350
2024-11-17 22:14:39 +00:00
rimu
24508a350c
support activitypub discovery using Link header and HEAD requests
2024-11-18 10:09:57 +13:00
rimu
434cf9f922
support activitypub discovery using Link header
...
see https://swicg.github.io/activitypub-html-discovery/#http-link-header
2024-11-18 10:04:58 +13:00
rimu
ffd78bfd80
add unique constraint to user.ap_profile_id and clean up old data
2024-11-14 20:16:09 +13:00
rimu
f16b23bcd8
do not mix model objects from different sessions
2024-11-14 16:51:48 +13:00
rimu
c746be51c9
oops, don't close session too soon
2024-11-14 16:43:17 +13:00
rimu
53e90bb8c1
use separate DB session for common celery tasks to reduce conflicts
2024-11-14 16:28:38 +13:00
rimu
70bb9ab68f
finesse my earlier fix
2024-11-06 14:38:58 +13:00
rimu
a056a02ac3
avoid invalid post urls
2024-11-05 17:09:48 +13:00
rimu
122941b696
local variable 'server' referenced before assignment
2024-11-02 16:39:39 +13:00
rimu
21ae50f6ff
post licence - save and display
2024-11-02 16:02:29 +13:00
freamon
aa754cbd45
Use community linked to_delete or to_restore instead of one mentioned in request JSON
2024-10-30 15:27:18 +00:00
freamon
1611875936
Move cross-post logic out of routes and into util for delete/restore
2024-10-30 15:26:58 +00:00
freamon
bdbd33f513
Remove celery selection functions for delete/restore because decision was already made for calling function
2024-10-30 15:26:45 +00:00
freamon
e2d3f6d23d
Exclude blocked instances from linked instances in federated_instances response
2024-10-29 10:34:19 +00:00
freamon
502e6ff0f6
post soft-deletion: add options to restore or purge deleted posts
2024-10-26 03:55:56 +00:00
freamon
899bf834cd
post soft-deletion: delay calling delete_dependencies until a post is purged, to allow for restoration
2024-10-26 03:55:21 +00:00
rimu
401df0cc58
nodeinfo - open registrations
2024-10-23 16:08:24 +13:00
freamon
af3bc4f0dd
post-reply soft-deletion: activitypub restorations
2024-10-21 22:20:33 +00:00
freamon
1a0ad888db
post-reply soft-deletion: remote users in local communities
2024-10-21 22:20:20 +00:00
freamon
0220739d16
post-reply soft-deletion: add info to activitypublog for deletions
2024-10-21 22:19:43 +00:00
rimu
384d8077be
avoid trying to delete already deleted posts
2024-10-21 10:22:59 +13:00
rimu
42439fb90a
Merge branch 'refactor-post-new'
2024-10-21 09:56:20 +13:00
freamon
a627de0985
post-reply soft-deletion: also replace content for activitypub retrievals
2024-10-19 21:56:01 +00:00
freamon
3196c2cb79
post-reply soft-deletion: activitypub fixes
2024-10-19 21:19:35 +00:00
freamon
a2a81e5726
post-reply soft-deletion: don't overwrite content, so it can be restored
2024-10-19 17:26:26 +00:00
rimu
77172f1d9c
minor bugfixes via sentry
2024-10-16 21:55:41 +13:00
rimu
cec844ec4f
refactor post-new wip
2024-10-14 15:37:00 +13:00
rimu
f1ddbcf008
populate deleted_by field
2024-10-14 12:35:24 +13:00
rimu
4d285e6871
FEP-268d - federation
2024-10-13 10:57:33 +13:00
rimu
955af755de
FEP-268d: Search consent signals for objects
2024-10-13 10:51:50 +13:00
rimu
1f18a05a4d
sanitize user display names #336
2024-10-10 19:46:55 +13:00
rimu
29f48f58b3
accept alt text
2024-10-08 07:47:43 +13:00
freamon
75d5c821a0
Also increment author's post_count when backfilling
2024-10-06 13:09:48 +00:00
freamon
4cfcc69648
Update if account is a bot or not when refreshing user profiles #334
2024-10-04 10:51:29 +00:00
rimu
5912e363a0
Revert "extensive logging for find_actor_or_create() issues"
...
This reverts commit cbd68f8fd8
.
2024-10-02 20:31:21 +13:00
rimu
0c493549e3
html response logging
2024-10-02 20:12:32 +13:00
rimu
cbd68f8fd8
extensive logging for find_actor_or_create() issues
2024-10-01 09:33:10 +13:00
rimu
c5208b1afe
peertube missing descriptions
2024-09-30 16:02:06 +13:00
rimu
def1c5fbfc
debugging tweaks
2024-09-30 15:46:50 +13:00
rimu
c9883c07c0
strip post title - activitypub
2024-09-29 17:15:47 +13:00
rimu
91def29480
post_reply refactor
2024-09-28 13:05:00 +12:00
freamon
a14a41c18e
Include check for post.deleted when looking for cross posts
2024-09-27 10:12:46 +00:00
freamon
7e77c0728d
Revert to always preferring incoming Markdown over HTML
...
Due to issues with spoiler format for Lemmmy and Fediverse links for MBIN (#327 )
2024-09-25 01:09:28 +00:00
freamon
6413490cc3
Revert earlier decision to only send out HTML (pls see app/utils.py line 327)
2024-09-22 13:45:03 +00:00
freamon
5e2ec8f9d9
Remove last remaining uses of lemmy_markdown_to_html
...
Everything is now piped through allowlist (except spoiler MD as Lemmy doesn't convert the MD in the contents)
2024-09-21 22:13:52 +00:00
freamon
bb9059bf70
Remove code that added comment from autotl;dr bot to post body (bot was disabled 23/07)
2024-09-21 22:13:35 +00:00
rimu
700b1c98de
better instance failure detection
2024-09-21 10:15:25 +12:00
rimu
e616ce122f
replace requests with httpx #15
...
better thread safety
2024-09-15 19:30:45 +12:00
rimu
740c42daea
refactor voting code to enable api development #13
2024-09-13 16:39:42 +12:00
rimu
51f2b3e40e
track user statistics like post count
2024-09-13 11:08:04 +12:00
rimu
33cd7ebdaf
bio for anon voting alt
2024-09-10 10:34:31 +12:00
rimu
1ef01d12ab
retry get requests
2024-09-09 08:43:10 +12:00
freamon
0da0845abe
Fix for bug that was preventing text-only posts from processing
2024-09-08 12:38:10 +00:00
rimu
026a7e699c
detect video posts better
2024-09-07 11:15:33 +12:00
freamon
1a0149cb80
Use youtu.be rather than youtube.com to grab thumbnail images
2024-09-06 01:10:51 +00:00
rimu
d70d5c2878
post teaser redesign #148
2024-09-05 20:10:26 +12:00
rimu
b2457545bf
Merge pull request 'Adding application endpoint pointer to nodeinfo response' ( #318 ) from JollyDevelopment/pyfedi:jollydev/add-nodeinfo-response-that-points-to-application-endpoint into main
...
Reviewed-on: https://codeberg.org/rimu/pyfedi/pulls/318
2024-09-04 22:57:19 +00:00
freamon
a4d981d431
Backfill: ignore community slug that Lemmy adds as a hashtag
2024-09-04 22:29:18 +00:00
freamon
54254b11c2
Backfill: update for recognising image posts
2024-09-04 22:29:05 +00:00
freamon
0d30b152cc
Backfill: set remote user's indexable status same on first fetch as later refresh
2024-09-04 22:28:52 +00:00
Alan Roberts
69ad6295a6
Adding application endpoint pointer to nodeinfo response
2024-09-04 16:30:01 -04:00
freamon
5ecb66988b
Possible fix for random posts from 'snac' users not being properly rejected and ending up in a community
2024-09-04 13:33:39 +00:00
rimu
48dfd6aa0b
improve peertube handling logic #265
2024-09-03 10:37:55 +12:00
rimu
1d23a2bf57
Revert "don't add paragraph tags around replies"
...
This reverts commit b3e2cab577
.
2024-09-03 10:24:51 +12:00
rimu
5f4086ff96
Revert "don't add paragraph tags around replies"
...
This reverts commit 51b79df591
.
2024-09-03 10:24:46 +12:00
freamon
a0fe7a58a7
Process ActivityPub post locks and unlocks
2024-09-01 22:46:43 +00:00
freamon
38b944c323
Read alt text if provided for incoming image posts #102
2024-09-01 20:08:33 +01:00
freamon
d255f676c8
Use 'Image' type in attachment for image posts so alt-text is in same place as Lemmy #102
2024-09-01 19:14:05 +01:00
freamon
1af76320b7
Also use public_url() for User Follower activity
2024-09-01 17:49:46 +01:00
rimu
11ce66443e
display error message when joining is denied due to allowlist
2024-08-30 17:25:37 +12:00
rimu
b3e2cab577
don't add paragraph tags around replies
2024-08-29 10:37:00 +12:00
rimu
51b79df591
don't add paragraph tags around replies
2024-08-29 10:31:55 +12:00
rimu
da66219ab8
Merge remote-tracking branch 'origin/main'
2024-08-28 19:16:05 +12:00
rimu
a473e9c55c
experimenting with LD Signatures
2024-08-27 19:37:47 +12:00
freamon
2069ca517e
Start using Lemmy's HTML 'content' field through an allowlist instead of translating Markdown
2024-08-25 15:58:38 +00:00
freamon
ab0a1816b3
ActivityPub - process ban reversals for local users from remote mods & admins
2024-08-23 14:05:42 +00:00
freamon
79ab687b5b
ActivityPub - Bans for local users from remote mods & admins
...
(Also works if alt_user_name is provided)
2024-08-23 08:47:19 +00:00
rimu
6cf546facb
only run 4chan filter in low quality communities
2024-08-23 12:28:10 +12:00
freamon
7fd83c4a11
Remove remote subscribers to a local community if remote instance states that there is none
2024-08-21 18:34:21 +00:00
freamon
12f488bfc1
Ignore it when flaky instances provide a HTML instead of JSON response
2024-08-21 15:27:47 +00:00
freamon
0d8058229c
Remove a couple of unnecessary db.session calls
2024-08-19 23:50:53 +00:00
freamon
43e2d59025
Don't overwrite activity_log.result from value set in undo_vote()
2024-08-19 23:49:24 +00:00
freamon
87d932c655
Return local user via their Alt in find_actor_or_create
...
(just so activities log shows when Lemmy is Announcing back local content)
2024-08-19 23:44:58 +00:00
rimu
336a47fdd2
random published date to avoid cake day associations
2024-08-20 09:08:45 +12:00
rimu
d718c2937b
random published date to avoid cake day associations
2024-08-20 08:55:05 +12:00
rimu
2f15fd5aea
alt user names
2024-08-20 07:03:18 +12:00
Hendrik L
11a4f1b101
Make notifications open comments below THREAD_CUTOFF_DEPTH
2024-08-19 10:32:54 +02:00
rimu
9ec7f969be
dark mode flickering #298
2024-08-18 16:38:55 +12:00
rimu
3cc220d1a2
improve robustness of nodeinfo parsing
2024-08-18 13:12:58 +12:00
rimu
3f190140bc
bugfix
2024-08-17 11:08:09 +12:00
rimu
41cadc1f72
only refresh community and user profiles of online instances
2024-08-17 10:31:22 +12:00
rimu
d0cc79f8ad
accept mastodon replies
2024-08-17 10:26:33 +12:00
freamon
474ff8c194
Initial work for posts that have been removed and then restored #276
2024-08-16 15:07:40 +00:00
freamon
5211c64c2a
Return 400 Bad Request for signature verification errors
2024-08-15 13:10:37 +00:00
freamon
f247c280e9
Remove unnecessary if/else clause
...
function only returns True or raises an Exception for an error
2024-08-15 11:16:57 +00:00
rimu
058cef2871
MBin sends Create activities even for remote communities #290
...
Lemmy uses Announce -> Create for communities hosted on their instance and only uses Create when posting to a community on our instance. Mbin uses Create all the time.
2024-08-10 18:43:16 +12:00
rimu
9611a27749
only prepend [Microblog] when autogenerated title is too short. fixes #266
2024-08-08 19:04:50 +12:00
rimu
d25232b128
treat EmojiReact activities as Likes
2024-08-08 18:25:22 +12:00
rimu
024e1f37fb
stop pages.dev spam
2024-08-04 17:07:08 +12:00
rimu
1a4b2810d6
add paragraph tags where necessary #265
2024-07-20 13:39:24 +08:00
rimu
55e4289a6e
Mastodon - language #21
2024-07-17 16:12:39 +08:00
rimu
21b59f8ff7
Mastodon - post_reply.post bug #21
2024-07-17 09:34:42 +08:00
rimu
3643526706
admins can set permissions for staff role #21
2024-07-16 21:29:06 +08:00
rimu
070e5726ef
Mastodon - spans with class "invisible" #31
2024-07-16 09:36:31 +08:00
rimu
1ea3c925ea
accept Posts and Comments from a.gup.pe #31
2024-07-15 20:46:48 +08:00
rimu
85cc1595fd
accept Activity from a.gup.pe #31
2024-07-15 17:51:23 +08:00
rimu
8f5af6f14d
Lemmy failed to retrieve the image but we might have better luck
2024-07-13 22:12:43 +08:00
rimu
3647e2796d
mod log #21
2024-07-07 15:01:52 +08:00
rimu
47dd776ca6
bigger thumbnail files to match bigger display size #241
2024-07-01 20:44:08 +08:00
rimu
d9d69c0b8a
caching on home page and posts, especially for anonymous users
...
the home page and post pages are the most likely to get slashdotted by mastodon.
2024-06-30 15:29:52 +08:00
rimu
eef9b193f4
oops, lol
2024-06-28 13:41:04 +08:00
rimu
c652b45627
no need to resize SVG images
2024-06-28 13:09:31 +08:00
rimu
9f5bae4ef4
if there is no attributedTo, fall back to the actor on the parent object
2024-06-28 13:03:07 +08:00
rimu
de20f73b0d
small tweak
2024-06-28 12:52:54 +08:00
rimu
e333193cbc
possible causes of celery hangs
2024-06-28 12:30:19 +08:00