aroberts-fox
3f9113c475
Adding a not joined view for communities list
2024-12-05 13:34:24 -05:00
rimu
6cc6fceb5b
sometimes ap_id is a dict?!
2024-12-05 15:42:58 +13:00
rimu
6a9ba43936
sometimes ap_id is a dict?!
2024-12-05 15:42:10 +13:00
rimu
69cef6edac
fixes #365
2024-12-05 14:33:57 +13:00
rimu
90df5b84ac
small UI tweaks #368
2024-12-05 14:12:32 +13:00
rimu
b98958e6ac
Merge pull request 'Adding admin remote instance scan function' ( #368 ) from JollyDevelopment/pyfedi:jollydev/add-admin-remote-instance-scan-01 into main
...
Reviewed-on: https://codeberg.org/rimu/pyfedi/pulls/368
2024-12-05 00:57:23 +00:00
rimu
4fe3778008
Merge pull request 'add more info to the modlog' ( #367 ) from h3ndrik/pyfedi:mod4 into main
...
Reviewed-on: https://codeberg.org/rimu/pyfedi/pulls/367
2024-12-05 00:50:44 +00:00
rimu
20698179dd
Merge pull request 'show roles, admins, reputation in user profiles ( fixes #364 )' ( #369 ) from h3ndrik/pyfedi:userprofile into main
...
Reviewed-on: https://codeberg.org/rimu/pyfedi/pulls/369
2024-12-05 00:49:41 +00:00
rimu
63d8528390
Merge pull request 'allow admins to access deleted user profiles' ( #370 ) from h3ndrik/pyfedi:deleted_user into main
...
Reviewed-on: https://codeberg.org/rimu/pyfedi/pulls/370
2024-12-05 00:48:56 +00:00
rimu
6c59ef8cb8
migration to remove related field #371
2024-12-05 13:47:08 +13:00
rimu
4ba1b1aa4a
Merge remote-tracking branch 'origin/main'
2024-12-05 13:44:59 +13:00
rimu
7ee1596d70
Merge pull request 'remove unused community.show_home setting ( fixes #371 )' ( #372 ) from h3ndrik/pyfedi:communities371 into main
...
Reviewed-on: https://codeberg.org/rimu/pyfedi/pulls/372
2024-12-05 00:43:36 +00:00
aroberts-fox
fb8dc9e8cb
comment cleanup
2024-12-04 19:01:08 -05:00
aroberts-fox
27915b654d
adjusting var names
2024-12-04 18:54:22 -05:00
aroberts-fox
422d494998
Adding mbin support to the remote server scan function
2024-12-04 18:37:25 -05:00
aroberts-fox
cf709ec6da
adjusting join message
2024-12-04 17:17:18 -05:00
aroberts-fox
d3d9c2625a
adjusting the requesting loop
2024-12-04 16:44:19 -05:00
aroberts-fox
1ef0a1917c
comment cleanup
2024-12-04 14:02:42 -05:00
aroberts-fox
4138a8b41b
adding a few more tests for remote scan
2024-12-04 14:02:42 -05:00
aroberts-fox
553d5de60b
adjusting dry run message
2024-12-04 14:02:42 -05:00
aroberts-fox
5210352e83
Adding remote server scan in admin
2024-12-04 14:02:42 -05:00
freamon
bd37423ba4
Add option for admins to fixup a broken post from the remote version
2024-12-04 17:36:28 +00:00
freamon
958a0c9f0c
Always store request JSON if activity was unmatched, but use site setting for unfound/blocked Announce object actor
2024-12-04 16:37:42 +00:00
Hendrik L
25d5f67128
remove unused community.show_home setting
2024-12-04 14:48:18 +01:00
Hendrik L
455612bf2e
add lock_post action
2024-12-04 11:22:27 +01:00
Hendrik L
87b1f40d2a
allow admins to access deleted user profiles
2024-12-03 20:15:57 +01:00
freamon
6b526635ca
Avoid error if remote user updates a post from Image to Article
2024-12-03 17:08:31 +00:00
Hendrik L
23a6b2673e
handle DB foreign key constraint for ModLog entries
2024-12-03 17:07:19 +01:00
Hendrik L
001d3fb823
add flash warnings if banning admins
2024-12-03 14:22:49 +01:00
Hendrik L
6e8f7c57cb
also show admin state for local instance
2024-12-03 13:40:59 +01:00
Hendrik L
526b73102b
show roles in user profile
2024-12-03 13:33:19 +01:00
Hendrik L
106c79e600
flag instance admins in user profiles ( fixes #364 )
2024-12-03 13:15:00 +01:00
Hendrik L
a97dc191b8
show reputation in user profile (to admins)
2024-12-03 12:48:25 +01:00
Hendrik L
f98e8eaf5a
small optimization
2024-12-03 11:58:43 +01:00
Hendrik L
3cee732a0b
remove lock_post helper function
2024-12-03 11:36:56 +01:00
rimu
82ce782be0
canonical url for communities
2024-12-03 15:15:22 +13:00
rimu
82be9f9475
use thumbnail image for videos when updating #366
2024-12-03 09:25:10 +13:00
rimu
36b272e797
use thumbnail image for videos #366
2024-12-03 09:15:03 +13:00
Hendrik L
a9e9c81272
reorder text in modlog
2024-12-02 16:17:54 +01:00
Hendrik L
f8b5f77421
log remote user bans
2024-12-02 14:51:23 +01:00
Hendrik L
e270bc9a0e
use lock_post function
2024-12-02 13:30:27 +01:00
Hendrik L
48a0cb64ce
modlog: propagate reasons for incoming mod actions
2024-12-02 12:29:59 +01:00
rimu
04cce6ec9d
ban posts or comments - ui
2024-12-02 15:03:16 +13:00
rimu
654829cbae
ban posts or comments
2024-12-02 13:48:10 +13:00
rimu
5c8a14007f
double negatives are hard
2024-12-01 21:24:23 +13:00
freamon
dfce93202e
Avoid error caused by fstab.sh admin with a http:// URL
2024-12-01 02:31:37 +00:00
freamon
64c40b11db
Avoid error if 'image' in Person JSON is null
2024-12-01 02:08:28 +00:00
freamon
18b714616a
Avoid AttributeError if Actor isn't a string
2024-12-01 01:32:46 +00:00
rimu
afcb4be96f
improve post teasers by avoid common fail modes
2024-12-01 08:40:35 +13:00
rimu
91dbe4c30b
improve post teasers by avoid common fail modes
2024-12-01 08:37:53 +13:00
rimu
f6661b7b9d
Revert "Microwave@lemmy.world summary"
...
This reverts commit 19bd90475a
.
2024-12-01 08:19:15 +13:00
freamon
ec91e6c7d2
Bugfix for posts with empty attachments
2024-11-30 14:20:19 +00:00
rimu
73f0ff35f4
a.gup.pe images - attached to notes as a dict
2024-11-30 21:36:42 +13:00
rimu
c74997d49e
only logged in can filter by Subscribed
2024-11-30 14:26:22 +13:00
rimu
7a7a1fe0d4
check community.ap_outbox_url
2024-11-30 14:22:48 +13:00
rimu
19bd90475a
Microwave@lemmy.world summary
2024-11-30 14:16:04 +13:00
rimu
570c754566
post_teaser_clickable on images
2024-11-30 13:46:59 +13:00
rimu
50a9ef5826
Merge remote-tracking branch 'origin/main'
2024-11-30 13:43:58 +13:00
rimu
831f9b1a47
improve initial impression given to new users
2024-11-30 13:43:44 +13:00
freamon
3a3b366fd4
rename id for logging from 'announce_id' to 'id'
2024-11-29 22:46:59 +00:00
rimu
53c8e3510f
daily maintenance - commit more often
2024-11-30 10:01:55 +13:00
rimu
dd93048e96
temporary instance bans
2024-11-30 09:50:14 +13:00
freamon
95f7b226d2
Fix variable name clash
2024-11-29 17:15:18 +00:00
freamon
5b85ee06f5
lower() the ap_id paramter for get_by_ap_id()
2024-11-29 16:40:51 +00:00
freamon
aa444f3417
Remove comments about users undeleting themselves, because it turns out that isn't possible from Lemmy
2024-11-29 15:48:38 +00:00
freamon
ba10663983
Add test route to call replay_inbox_request with manually defined request_json
2024-11-29 15:44:33 +00:00
freamon
3b800e7e96
Distinguish between Mastodon account deletes and content deletes
2024-11-29 15:43:42 +00:00
freamon
921c2e78b1
Make replay_inbox_request() a bit more consistent with shared_inbox()
2024-11-29 15:01:24 +00:00
freamon
a6b6b7cc8b
AP for direct (instead of Announced) add / remove of moderator
2024-11-27 22:42:27 +00:00
freamon
0b66127d40
Also ignore it if a.gup.pe announces local content back
2024-11-27 22:35:16 +00:00
freamon
01e28a20b5
rework update_post_from_activity #351
2024-11-27 22:31:38 +00:00
rimu
e28550427b
return 200 and minor bugfixes and tidy-ups #357
2024-11-28 11:11:59 +13:00
rimu
3553534c00
Merge pull request 'refactor-aproutes' ( #357 ) from refactor-aproutes into main
...
Reviewed-on: https://codeberg.org/rimu/pyfedi/pulls/357
2024-11-27 21:10:01 +00:00
aroberts-fox
7aced03976
adjusting newest to new internally
2024-11-27 15:05:35 -05:00
aroberts-fox
7b5de79d3f
Adding sorting to read-posts page
2024-11-27 13:18:56 -05:00
Hendrik L
d27f67cc35
consolidate columns in admin views to make some room
2024-11-26 13:06:30 +01:00
rimu
ae63ea9cfb
Merge pull request 'Admin pages: Order recent-first and limit results' ( #355 ) from h3ndrik/pyfedi:order into main
...
Reviewed-on: https://codeberg.org/rimu/pyfedi/pulls/355
2024-11-25 20:38:47 +00:00
Hendrik L
72f829eeb5
add percent sign to attitude value
2024-11-25 20:51:12 +01:00
Hendrik L
85af8fec29
round attitude and reputation numbers
2024-11-25 20:44:36 +01:00
Hendrik L
63e36acbcb
show content as trash only if downvoted
2024-11-25 19:14:32 +01:00
Hendrik L
513d4da7c3
order admin_content_deleted newest first
2024-11-25 19:14:32 +01:00
freamon
26eb967a1c
apf part 36: Use signed get if remote site responds 401
2024-11-25 12:46:34 +00:00
freamon
ff90e50332
apf part 35: Replay inbox requests
2024-11-24 22:01:11 +00:00
freamon
cc282fe5f7
apf part 34: Redirect user inbox to shared inbox
2024-11-24 21:49:08 +00:00
freamon
3d4ea6637c
apf part 33: Log unmatched activity, and delete old code
2024-11-24 21:45:39 +00:00
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
d2aa9c321d
clean up duplicate comments #348
2024-11-24 16:00:53 +13:00
rimu
ff201af0d6
do not create duplicate posts #348
2024-11-24 15:38:51 +13:00
rimu
51fba1a156
merge duplicate posts #348
2024-11-24 15:27:21 +13:00
rimu
3b462377ce
move post teaser clickable div so voting buttons still work
2024-11-24 09:19:58 +13:00
rimu
d3825b68b5
increase length of ban reason
2024-11-23 18:48:03 +13:00
rimu
f8638cf98b
tap anywhere on the teaser to view the post
...
not just the title
2024-11-22 08:47:34 +13:00
rimu
81c7f05e74
stop alt text on 404d thumbnail images from overflowing
2024-11-22 08:33:56 +13:00
rimu
f9d8ac555a
Merge remote-tracking branch 'origin/main'
2024-11-19 18:54:45 +13:00
rimu
a5656c3318
merge duplicate communities #348
2024-11-19 18:54:33 +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
freamon
594b858bd4
Use http instead of https for viewing images if SERVER_NAME is 127.0.0.1
2024-11-17 19:45:01 +00:00
freamon
3f9a0a5fea
replace the 'static' for images hotlinked to fandom sites with 'vignette'
2024-11-17 18:55:45 +00:00
rimu
3fb6a9e0bf
increase http post timeout to 10 seconds
2024-11-16 21:53:18 +13:00
rimu
d5ae01b456
add index #348
2024-11-15 16:42:08 +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
e60eb5b761
update translations
2024-11-11 16:45:55 +13:00
rimu
0c4e15f2c4
show posts from child topics - rss
2024-11-08 15:27:56 +13:00
rimu
0b5f515de6
show posts from child topics
2024-11-08 15:09:24 +13:00
rimu
70bb9ab68f
finesse my earlier fix
2024-11-06 14:38:58 +13:00
rimu
108b3f9422
Merge remote-tracking branch 'origin/main'
2024-11-05 17:10:06 +13:00
rimu
a056a02ac3
avoid invalid post urls
2024-11-05 17:09:48 +13:00
freamon
95be488cc9
API: use Celery for federation tasks
2024-11-02 23:56:56 +00:00
rimu
eedaddd851
avoid StaleDataError
2024-11-03 10:47:41 +13:00
rimu
122941b696
local variable 'server' referenced before assignment
2024-11-02 16:39:39 +13:00
rimu
915e8c779a
Avoid StaleDataError exception during user.recalculate_attitude()
2024-11-02 16:34:16 +13:00
rimu
f36135d163
cli: handle invalid version data
2024-11-02 16:20:52 +13:00
rimu
34a991ef7d
don't show post title in breadcrumb
2024-11-02 16:10:52 +13:00
rimu
bd3361ebc6
only show 'retrieve post from original server' on community page, not posts
2024-11-02 16:10:35 +13:00
rimu
21ae50f6ff
post licence - save and display
2024-11-02 16:02:29 +13:00
rimu
88d28c1464
post licence model and migration
2024-11-02 15:14:31 +13:00
freamon
2e9720539c
Exclude already-discovered communities from admin-preload function
...
Also - pls see note about using the admin's alt profile for this
2024-10-31 21:29:40 +00:00
freamon
830ef632d9
Bugfix: include same language identifiers for top-level and deeper-level post-replies
2024-10-31 16:25:30 +00: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
rimu
f4e2dfa691
edit post with hashtags
2024-10-30 09:21:54 +13:00
rimu
bcbb9f83e9
Merge remote-tracking branch 'origin/main'
2024-10-30 09:19:44 +13:00
rimu
ea4df1d2f0
edit post with hashtags
2024-10-30 09:19:32 +13:00
freamon
e2d3f6d23d
Exclude blocked instances from linked instances in federated_instances response
2024-10-29 10:34:19 +00:00
freamon
57191c2c23
API: utilise DB exceptions for return errors
2024-10-27 13:36:56 +00:00
freamon
308f29ba38
API: support /comment/report
2024-10-27 10:20:38 +00:00
freamon
d738850fc7
Recalc community.post_reply_count after replies are purged as part of a post purge
2024-10-26 04:46:51 +00:00
freamon
502e6ff0f6
post soft-deletion: add options to restore or purge deleted posts
2024-10-26 03:55:56 +00:00
freamon
9a033522d1
post soft-deletion: show deleted posts in user profile to provide restoration route
2024-10-26 03:55:45 +00:00
freamon
0c0b0e4212
post soft-deletion: hide links in user profile replies section that'll likely 404
2024-10-26 03:55:35 +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
8a008e3a8a
instance block on instance profile
2024-10-25 13:37:57 +13:00
rimu
de2c5b710a
instance block on user profile
2024-10-25 13:14:56 +13:00
rimu
5b386ec190
show instance name after display name
2024-10-23 21:35:44 +13:00
rimu
401df0cc58
nodeinfo - open registrations
2024-10-23 16:08:24 +13:00
rimu
04a68a4298
blocking an instance hides communities too
2024-10-23 13:00:30 +13:00
rimu
841174619c
Merge remote-tracking branch 'origin/main'
2024-10-23 08:37:25 +13:00
rimu
8a1aa648ae
daily maintenance: handle exceptions
2024-10-23 08:37:08 +13:00
freamon
258dc1b9d7
Bugfix: restore content subscription to own post
2024-10-22 07:55:00 +00:00
rimu
156c328c6f
tidy up calls to obsolete post_ranking
2024-10-22 19:51:37 +13:00
rimu
2aeac58f5e
check instance.nodeinfo_href is not none
2024-10-22 19:48:23 +13:00
freamon
0274682adc
Bugfix: also federate post deletion by post owners #341
2024-10-21 23:03:53 +00: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
0495d8a30e
Abandoned open instances automatically close registrations after one week #339
2024-10-21 16:14:34 +13:00
rimu
dfa95e3b12
tidy up profiles - large images
2024-10-21 15:55:55 +13:00
rimu
cbf44ef229
Delete voting data after 6 months
2024-10-21 15:50:11 +13: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
rimu
1d77d42946
post-new: do not double count
2024-10-21 09:55:39 +13:00
rimu
518f165c1f
post-new: image posts
2024-10-20 20:21:30 +13:00
rimu
2d6d9b960c
Merge remote-tracking branch 'origin/main'
2024-10-20 11:54:31 +13:00
rimu
d7b750f9b9
make disable_voting work again - user profiles
2024-10-20 11:23: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
148d230527
post-reply soft-deletion: add option to purge a comment
2024-10-19 17:27:42 +00:00
freamon
5643c19e44
post-reply soft-deletion: add deleted comments to user view, to provide restoration route
2024-10-19 17:27:30 +00:00
freamon
9ef5aeecb3
post-reply soft-deletion: collapse deleted comments in post view
2024-10-19 17:27:16 +00:00
freamon
9e80066d2a
post-reply soft-deletion: add restore function
2024-10-19 17:27:03 +00:00
freamon
a2fae00936
post-reply soft-deletion: replace content in HTML with 'deleted by author/moderator'
2024-10-19 17:26:50 +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
freamon
df2dc6e020
post-reply soft-deletion: keep current behaviour by not hard-deleting replies that have their own replies
2024-10-19 17:26:08 +00:00
freamon
7983105c58
post-reply soft-deletion: comment out uncalled routine
2024-10-19 17:25:54 +00:00
rimu
375235435e
Merge remote-tracking branch 'origin/main'
2024-10-16 21:55:54 +13:00
rimu
77172f1d9c
minor bugfixes via sentry
2024-10-16 21:55:41 +13:00
rimu
feca5992af
refactor post-new wip
2024-10-16 21:42:30 +13:00
freamon
55d47168ce
Use original follow id to unsubscribe from a.gup.pe groups
...
(doesn't properly unsubscribe if gibberish is used)
2024-10-15 02:01:05 +00:00
freamon
afe6605ceb
API: support /comment/delete for user reply delete/restore
2024-10-14 04:29:06 +00:00
rimu
ba2a97c4ad
deleted_by field - no foreign keys as they were confusing sqlalchemy
2024-10-14 15:48:55 +13:00
rimu
cec844ec4f
refactor post-new wip
2024-10-14 15:37:00 +13:00
rimu
d8c75991cd
Merge remote-tracking branch 'origin/main'
2024-10-14 12:35:38 +13:00
rimu
f1ddbcf008
populate deleted_by field
2024-10-14 12:35:24 +13:00
rimu
377d07a67e
deleted_by field on Post, PostReply and User
2024-10-14 12:29:56 +13:00
freamon
07010ffaee
API: ensure only reply owner can edit the reply
2024-10-13 20:29:05 +00:00
freamon
9054f05c1d
API: For comments, prefer 'english' over 'no language' or 'undetermined'
2024-10-13 20:28:53 +00:00
rimu
f2af615d02
pagination on instance people list
2024-10-13 11:16:36 +13:00
rimu
4d285e6871
FEP-268d - federation
2024-10-13 10:57:33 +13:00
rimu
c8922cc67f
link user profiles to their instances
2024-10-13 10:53:47 +13:00
rimu
815d13b1f7
Merge remote-tracking branch 'origin/main'
2024-10-13 10:52:51 +13:00
rimu
955af755de
FEP-268d: Search consent signals for objects
2024-10-13 10:51:50 +13:00
freamon
e2160bde40
API: support /comment endpoint for editing post replies
2024-10-12 19:16:02 +00:00
freamon
bd0d3fb9e8
API: support 'Popular' listing type
2024-10-12 19:12:53 +00:00
rimu
97396e9343
instance templates
2024-10-12 17:13:22 +13:00
rimu
fde98f381c
instance overview page
2024-10-12 17:07:53 +13:00
rimu
91465c4ced
Merge remote-tracking branch 'origin/main'
2024-10-12 16:56:35 +13:00
rimu
2e56b6c5c0
show people and posts from each instance
2024-10-12 16:56:22 +13:00
rimu
1bee5a74b7
move instances list to dedicated package/blueprint
2024-10-12 16:25:20 +13:00
freamon
699efbd2d9
API: support /comment endpoint for creating new post replies
2024-10-11 17:09:32 +00:00
freamon
cb28b79108
For a.gup.pe groups, send votes to post author instead of to community
2024-10-10 15:39:36 +01:00
rimu
773ba7040c
Merge remote-tracking branch 'origin/main'
2024-10-10 19:47:08 +13:00
rimu
1f18a05a4d
sanitize user display names #336
2024-10-10 19:46:55 +13:00
freamon
d09c21a32e
API: support /site/block endpoint
2024-10-09 23:48:58 +00:00
freamon
b49bb4cf3f
API: initial support for /search endpoint (enough for instance view)
2024-10-09 23:46:57 +00:00
rimu
522a607647
Merge remote-tracking branch 'origin/main'
2024-10-09 13:25:04 +13:00
rimu
83f8a70407
exclude deleted posts from search results
2024-10-09 13:24:50 +13:00
freamon
fef2c16635
Bugfix: import EditInstanceForm into admin/routes
2024-10-08 11:23:10 +00:00
freamon
8bbacc3da6
API: let exceptions bubble-up instead of unnecessary catch and raise
2024-10-08 11:22:54 +00:00
rimu
29f48f58b3
accept alt text
2024-10-08 07:47:43 +13:00
rimu
a0e8f673c9
effects of upgrading sass #337
2024-10-08 07:13:11 +13:00
rimu
88e7bdca57
Merge remote-tracking branch 'origin/main'
2024-10-08 07:02:05 +13:00
rimu
b3144f6d7d
fixes #337
2024-10-08 07:01:51 +13:00
freamon
45b68c6a7f
API: process /community/block endpoint
2024-10-07 13:57:19 +00:00
freamon
f73b428cc8
Recalculate topic community count if topic changed #338
2024-10-07 02:21:48 +00:00
freamon
5f42de3893
API: process /community/follow (for joining and leaving communities)
2024-10-07 00:51:05 +00:00
freamon
ab6d66e7e2
API: return 'SubscribedType' (for if the community is being followed)
2024-10-07 00:48:47 +00:00
freamon
41aa128b67
API: return user_id as int, not str
2024-10-07 00:48:37 +00:00
freamon
75d5c821a0
Also increment author's post_count when backfilling
2024-10-06 13:09:48 +00:00
freamon
be42d6eb6d
Also delete blocked_users cache when blocking users in Post and Reply Options page
2024-10-06 13:08:21 +00:00
freamon
30fb76ed9e
API: better error msg if Auth is missing from header
2024-10-06 02:17:13 +00:00
freamon
7c8dfe6bd3
API: support /user/block endpoint
2024-10-05 20:55:04 +00:00
rimu
eff0edf817
more reliable youtube thumbnails
2024-10-06 07:03:58 +13:00
rimu
0c646c5cf4
cross-posting of bot-generated posts #206
2024-10-05 18:58:07 +13:00
rimu
488bfab901
Merge remote-tracking branch 'origin/main'
2024-10-05 12:25:43 +13:00
rimu
23836fbcc1
fixes #335
2024-10-05 12:25:31 +13: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
f4ad10e4c4
heh #333
2024-10-04 19:03:40 +13:00
rimu
a7fbd57188
use smallest version of community thumbnail #333
2024-10-04 18:58:41 +13:00
rimu
1094a2b5fb
undo effects of different sass version
2024-10-04 18:48:05 +13:00
rimu
3ccbe67ab8
Merge pull request 'Add community icon infront of name in teasers' ( #333 ) from jeena/pyfedi:main into main
...
Reviewed-on: https://codeberg.org/rimu/pyfedi/pulls/333
2024-10-04 05:44:50 +00:00
freamon
baaf93087d
Add 'Account->Activity Alerts' page to show content subscriptions
...
(not sure of best terminology for these - feel free to rename)
2024-10-02 09:18:27 +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
ac71830c72
display json even if not valid json
2024-10-02 20:29:09 +13:00
rimu
0c493549e3
html response logging
2024-10-02 20:12:32 +13:00
Jeena
157486d7b2
Add community icon infront of name in teasers
...
I have a much easier time recognizing icons, even if they're small
compared to reading the name of the community. I thought for
example that beehive blocked me because I never saw any posts from
there.
Turns out I see all of them, I just didn't realize that those posts
were from beehive, because we don't show the domain part of a
community, so I assumed every time I saw c/technology it came
from lemme world. With the icon I can see imediatelly that it's
from beehive.
It does make the page a bit heavier because the browser needs to
download all the community icons, but in my opinion it is worth
it for the better UX.
2024-10-01 22:01:01 +00:00
rimu
cbd68f8fd8
extensive logging for find_actor_or_create() issues
2024-10-01 09:33:10 +13:00
rimu
deb14b73f3
generate medium sized image even when source image is small #332
2024-10-01 09:23:26 +13:00
rimu
d2327fd3c1
move date humanization out of jinja and into python where exceptions can be handled properly
...
In the arrow package, Catalan language does not have 'weeks' defined as a way to display datetimes. A PR has been submitted.
2024-09-30 16:34:17 +13:00
rimu
5465f945be
old cross posts
2024-09-30 16:04:15 +13:00
rimu
c5208b1afe
peertube missing descriptions
2024-09-30 16:02:06 +13:00
rimu
c37a01fde4
set instance.start_trying_again if it has not been already
2024-09-30 15:58:02 +13:00
rimu
0771bc8386
dang
2024-09-30 15:52:13 +13:00
rimu
def1c5fbfc
debugging tweaks
2024-09-30 15:46:50 +13:00
rimu
c9372f38c5
only show link to read history if tracking is enabled #331
2024-09-30 14:14:53 +13:00
rimu
a2db4c669e
add option to clear read history - privacy #331
2024-09-30 14:09:29 +13:00
rimu
bc4fa5b202
use join instead #331
2024-09-30 13:49:17 +13:00
rimu
bba8687567
use outer join instead #331
2024-09-30 13:49:06 +13:00
rimu
3ad1071e01
Merge remote-tracking branch 'origin/main'
2024-09-30 13:24:06 +13:00
rimu
39cffce73c
Merge pull request 'Adding a "Hide Read" function' ( #331 ) from JollyDevelopment/pyfedi:jollydev/hide-read-function into main
...
Reviewed-on: https://codeberg.org/rimu/pyfedi/pulls/331
2024-09-30 00:23:49 +00:00
rimu
de8530aa54
expand 2 character variable names #328
2024-09-30 10:31:30 +13:00
rimu
a14f3a3a62
be careful not to redefine 'db', that breaks everything #328
2024-09-30 09:56:25 +13:00
Alan Roberts
779def72aa
adding read-posts filtering to domain page
2024-09-29 14:02:29 -04:00
Alan Roberts
9185a56267
adding intercted_at column to read_posts table
2024-09-29 13:18:41 -04:00
Alan Roberts
42df0fe458
comment cleanup
2024-09-29 13:18:41 -04:00
Alan Roberts
48bae31d6c
adding user read-posts page
2024-09-29 13:18:41 -04:00
Alan Roberts
c6fb8fc554
got the read posts filering on main, topics, and community pages
2024-09-29 13:18:41 -04:00
Alan Roberts
ccbc0b4b22
got the relationship working, and the mark_as_read working
2024-09-29 13:18:41 -04:00
Alan Roberts
c59556fab5
adding hide-read-posts setting for user settings
2024-09-29 13:18:41 -04:00
Alan Roberts
08290b0468
Adding a hide-read-posts function
2024-09-29 13:18:41 -04:00
freamon
e34eeb9ec8
Bugfix: user save settings redirects to new function name
2024-09-29 14:16:57 +00:00
rimu
c9883c07c0
strip post title - activitypub
2024-09-29 17:15:47 +13:00
rimu
fd9d744111
strip post title
2024-09-29 17:13:30 +13:00
rimu
91def29480
post_reply refactor
2024-09-28 13:05:00 +12:00
rimu
c893d32aaa
link tweak
2024-09-28 09:12:15 +12:00
rimu
84d2c1e877
Merge pull request 'Adding export/import for various instance level bans' ( #328 ) from JollyDevelopment/pyfedi:jollydev/export-import-block-lists into main
...
Reviewed-on: https://codeberg.org/rimu/pyfedi/pulls/328
2024-09-27 21:11:14 +00:00
Alan Roberts
8a5b7fd8b1
button display rephrase of text
2024-09-27 08:58:06 -04:00
Alan Roberts
9498dbd323
removed testing flash message
2024-09-27 08:55:12 -04:00
Alan Roberts
e83e1874e1
fixing admin routes typo lines
2024-09-27 08:55:12 -04:00
Alan Roberts
f97a366135
further tweaks
2024-09-27 08:55:12 -04:00
Alan Roberts
1cbb15a32b
checking for use_allowlist in exports
2024-09-27 08:55:12 -04:00
Alan Roberts
49a9e3e692
more ban imports steps
2024-09-27 08:55:12 -04:00
Alan Roberts
d046df22e3
adding bans import side
2024-09-27 08:55:12 -04:00
Alan Roberts
d3198016db
getting bans list export setup
2024-09-27 08:55:12 -04:00
Alan Roberts
549abde9b3
Adding import, export for bans
2024-09-27 08:55:12 -04:00
Jeena
14fa658774
Add direct link to reply/comment
...
It's difficult to be able to copy and paste a link to a specific
comment or reply. It's only easy from the notifications page.
This patch introduces a link to a comment/reply by changing
the <span> to a <a> around the "When" text like "15 hours ago".
This is usually how other websites do deep links to comments too,
they make the time of post into a clickable link, so people should
be able to find it easyly.
2024-09-27 11:02:10 +00:00
freamon
a14a41c18e
Include check for post.deleted when looking for cross posts
2024-09-27 10:12:46 +00:00
freamon
8542963ac2
Include check for post.deleted in check_url_already_posted
2024-09-27 10:12:31 +00:00
freamon
a926eb0f1a
API: process post/subscribe and comment/subscribe
2024-09-26 16:01:55 +00:00
freamon
dbc8c3805e
API: handle /user?username route option if user is logged in
2024-09-26 16:00:50 +00:00
freamon
363871241a
API: process 'vote reversal' (this should have been committed with the first batch)
2024-09-26 16:00:36 +00:00
freamon
d5b68e0779
API: reorganise views to put DB calls in one place
2024-09-26 16:00:23 +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
8437154f48
Regex embedded mp4/webm/mp3 files out of <img> and into <video> or <audio> tags
2024-09-24 22:20:35 +00:00
rimu
7b4cdaf30c
only vote privately with untrusted instances
2024-09-24 12:04:29 +12:00
rimu
b0e478b335
change instance settings #255
2024-09-24 11:33:49 +12:00
rimu
8fcd4c7de7
list trusted instances
2024-09-24 09:36:19 +12:00
rimu
7e4163db6b
limit access to voting data
2024-09-24 09:28:06 +12:00
rimu
705de82714
only show Voting Activity link if logged in
2024-09-24 09:08:54 +12:00
freamon
db250b6aeb
Add option for admins to kick remote subscribers from local communities
...
(unsubscribe without ban, typically because their instance is dead)
2024-09-23 15:06:37 +00:00
freamon
2de2f9ed2d
API: add post/save and comment/save routes (aka bookmarks)
2024-09-23 12:40:27 +00:00
freamon
e6f3bd6fb4
Add pages for admins and community mods to see voting activity
2024-09-22 22:55:47 +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
506becc41c
API: fix for queries by community name
2024-09-22 13:44:50 +00:00
rimu
ea1564cc87
Merge remote-tracking branch 'origin/main'
2024-09-22 22:05:45 +12:00
rimu
3fb7470f33
lazy load streamable and redgifs
2024-09-22 22:05:21 +12:00
freamon
646bcdf7be
avoid wrapping anchors around existing anchors
...
(e.g. if raw URL already wrapped by remote PieFed instance)
2024-09-21 22:14:27 +00:00
freamon
bdb201f4d3
Remove safe_mode=True for Markdown2, as most things go straight through allowlist_html, and it mangles code in <code> blocks
2024-09-21 22:14:07 +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
69ac4f2beb
Merge remote-tracking branch 'origin/main'
2024-09-21 13:23:28 +12:00
rimu
5e1f67d162
issues found with sentry
2024-09-21 13:23:14 +12:00
freamon
56a7f65c44
Decrement post.reply_count if reply from local user is deleted
2024-09-20 23:17:21 +00:00
rimu
04412ec035
avoid pendingrollbackerrors by committing more often
2024-09-21 10:54:29 +12:00
rimu
e9594ad646
Merge remote-tracking branch 'origin/main'
2024-09-21 10:15:39 +12:00
rimu
700b1c98de
better instance failure detection
2024-09-21 10:15:25 +12:00
freamon
1e06b42099
Add inital routes for API (with minimal changes to main codebase)
2024-09-20 16:06:08 +00:00
rimu
37d3501136
Merge remote-tracking branch 'origin/main'
2024-09-17 09:47:43 +12:00
rimu
b3ef7cc106
recalculate_post_stats when viewing profile
2024-09-17 09:47:31 +12:00
freamon
6e4b65b4bc
Bugfix to correct post.score and post_vote.effect values
2024-09-16 13:16:14 +00:00
rimu
e616ce122f
replace requests with httpx #15
...
better thread safety
2024-09-15 19:30:45 +12:00
rimu
d0cbf592ea
tweaks #323
2024-09-14 15:50:23 +12:00
Alan Roberts
e1d7a117ef
updated user message
2024-09-13 14:08:32 -04:00
Alan Roberts
1e03afe36e
adding a size check on amount of communities requested
2024-09-13 14:04:04 -04:00
Alan Roberts
8fca0b7aca
comment clean up
2024-09-13 13:02:17 -04:00
Alan Roberts
56b7621fac
adjusting the return for the view
2024-09-13 12:49:10 -04:00
Alan Roberts
8eb34ac4d2
changing referrer check
2024-09-13 11:44:37 -04:00
Alan Roberts
859edac084
passing user.id rather than the user directly
2024-09-13 11:34:14 -04:00
Alan Roberts
6b72b9cb64
adding a way to pass a user to do_subscribe
2024-09-13 11:26:00 -04:00
Alan Roberts
cf5bb65a9f
making do_subscribe a celery task, messages to user updates
2024-09-13 11:10:10 -04:00
Alan Roberts
cf2400e5d5
work to make the num of communities user configurable
2024-09-13 10:26:07 -04:00
Alan Roberts
f00a9b2722
initial pass at the subscribe step
2024-09-13 10:26:07 -04:00
Alan Roberts
badf4cddba
got the top 25 sorting for pre-load function to work
2024-09-13 10:26:07 -04:00