Commit graph

782 commits

Author SHA1 Message Date
rimu
ccad3c30e7 Merge pull request 'Clean up the Admin--Users and Monitoring users pages and add sorting' (#390) from h3ndrik/pyfedi:admin_users_cleanup into main
Reviewed-on: https://codeberg.org/rimu/pyfedi/pulls/390
2024-12-21 00:10:27 +00:00
hono4kami
23e7d65a31 feat: improve post, post reply, and chat option
Instead of using separate page for those options, make it use dropdown.

Refs: #392
2024-12-20 00:44:49 +07:00
hono4kami
4cc4cb2e7b Merge branch 'main' into hono4kami/392 2024-12-19 23:57:43 +07:00
hono4kami
b77a64ccf7 feat: WIP better post options
Refs: #392
2024-12-19 21:02:02 +07:00
Hendrik L
0bdac9f598 add link to https://join.piefed.social/try/ on closed registration 2024-12-19 13:16:03 +01:00
Hendrik L
d4ff1f924f remove admin_users_trash in favor of the new admin_users sorting capability 2024-12-18 13:11:13 +01:00
Hendrik L
5e911b4853 make admin_users table sortable 2024-12-18 13:05:22 +01:00
Hendrik L
e007f14359 move IP and Referer into user profile page 2024-12-18 10:04:17 +01:00
hono4kami
a6732958df fix: fix URL queries appending
Fix another unsual behavior where a URL query fields are being appended
to URL instead of replaced, when a form field is changed.

Refs: #362
2024-12-17 22:54:00 +07:00
hono4kami
d78cf0cef6 fix: fix weird behavior on URL search params
Fix weird behavior where URL search params value gets appended instead of
being replaced.

Refs: #362
2024-12-17 14:31:33 +00:00
hono4kami
2d2e18abf7 fix: fix can only search by All communities
Refs: #362
2024-12-17 14:31:33 +00:00
hono4kami
bad1839c14 fix: fix title attribute
Fix title attribute for the button on post count table column header.

Refs: #362
2024-12-17 14:31:33 +00:00
hono4kami
e758389b10 feat: make community search retain last_active sort
Refs: #362
2024-12-17 14:31:33 +00:00
hono4kami
8ffd02651c chore: remove unused link on table header
Refs: #362
2024-12-17 14:31:33 +00:00
hono4kami
8dd3d3de93 feat: make community search retain sort method
Make community search retain post_reply_count sort method.

Refs: #362
2024-12-17 14:31:33 +00:00
hono4kami
61963a43dc feat: make community search retain post_count sort
Refs: #362
2024-12-17 14:31:33 +00:00
hono4kami
3e91ee34f7 feat: make community search community name sort
Refs: #362
2024-12-17 14:31:33 +00:00
hono4kami
b8178b650c fix: make community search page retain fields
Make community search page retain `topic_id`, `language_id`, and `search`

Refs: #362
2024-12-17 14:31:33 +00:00
freamon
95571f510d Merge branch 'h3ndrik-modlog_admin' 2024-12-16 22:13:28 +00:00
xmatt
cf73c996b9 Merge branch 'main' into feature/image_post_editing 2024-12-14 22:32:46 +00:00
mtyton
79b3797b5f Added possibility to edit images in Image posts 2024-12-14 23:30:45 +01:00
freamon
d4e9ff14d9 bugfix for extra cross-posts exclusion commit 2024-12-14 19:36:50 +00:00
rimu
68132a6ac2 warnings on domains 2024-12-13 19:30:10 +13:00
rimu
d98a5e19d3 warnings on domains 2024-12-13 19:24:09 +13:00
Hendrik L
410c473547 add modlog to the admin tools 2024-12-12 20:53:38 +01:00
Hendrik L
b4f1706a6b user_notes relationship, caching, cleanup 2024-12-12 20:05:59 +01:00
freamon
c851680b05 Depreciate generate_image_from_video_url(), put <video> in masonry instead #373 2024-12-11 22:54:58 +00:00
rimu
ab8df181ad Merge remote-tracking branch 'origin/main' 2024-12-12 08:13:36 +13:00
rimu
76db8a726e tweaks 2024-12-12 08:13:25 +13:00
freamon
852d784c7f API: provide route back from x-api theme 2024-12-11 02:11:40 +00:00
freamon
111d726de7 API: login and out when using x-api theme 2024-12-11 00:49:18 +00:00
Hendrik L
148df4fcba edit form for user note 2024-12-10 14:30:28 +01:00
Hendrik L
8da62f56c8 fix oopsie 2024-12-10 12:16:52 +01:00
Hendrik L
1550d9bb70 render user note 2024-12-10 09:12:18 +01:00
rimu
0752ccfe72 ugh 2024-12-10 15:41:40 +13:00
rimu
d079a6dab7 tweak padding #380 2024-12-10 09:12:58 +13:00
rimu
2e4b3ffd33 move notification bell from teaser to post options #380 2024-12-10 08:30:16 +13:00
Hendrik L
67d59e2657 float thumbnails 2024-12-09 17:27:10 +01:00
Hendrik L
d772f2304b unify notification bell and try to fix related css in the action/option bars 2024-12-09 16:43:21 +01:00
Hendrik L
5780e9b05e separate out breadcrumb_nav 2024-12-09 13:47:54 +01:00
Hendrik L
b3bb16cce4 reduce duplication in post template 2024-12-09 13:39:14 +01:00
rimu
d063850acd Merge remote-tracking branch 'origin/main' 2024-12-09 18:11:43 +13:00
rimu
cb0d9317ae reply edit time spacing #376 2024-12-09 18:11:32 +13:00
rimu
7d8421a8cf Merge pull request 'Adding community_links filter to side pane' (#379) from JollyDevelopment/pyfedi:jollydev/fix-community-sidebar-url-filters-00 into main
Reviewed-on: https://codeberg.org/rimu/pyfedi/pulls/379
2024-12-08 22:42:58 +00:00
freamon
80f599568b Add theme for experimenting with API 2024-12-08 22:37:02 +00:00
aroberts-fox
9c4feccae3 Adding community_links filter to side pane 2024-12-08 16:00:59 -05:00
rimu
c2e92695c1 Merge remote-tracking branch 'origin/main' 2024-12-09 09:20:02 +13:00
rimu
e4d915338a reduce duplication in teasers #377 2024-12-09 09:19:51 +13:00
aroberts-fox
7305b6072c Only show joined, not joined buttons to logged in users 2024-12-07 12:06:00 -05:00
rimu
9dd17f62d2 Merge pull request 'Cleanup: Replace macro render_comment [feedback requested]' (#376) from h3ndrik/pyfedi:render_comment2 into main
Reviewed-on: https://codeberg.org/rimu/pyfedi/pulls/376
2024-12-07 04:59:16 +00:00
rimu
5820a710f7 profile pic on mobile 2024-12-07 10:22:23 +13:00
Hendrik L
aa06a1f434 replace macro render_comment 2024-12-06 13:28:20 +01:00
rimu
13ab19d91b Merge pull request 'Adding a not joined view for communities list' (#375) from JollyDevelopment/pyfedi:jollydev/qol-add-not-joined-community-filter-00 into main
Reviewed-on: https://codeberg.org/rimu/pyfedi/pulls/375
2024-12-05 21:23:31 +00:00
rimu
4e87a365b3 svg image support #374 2024-12-06 10:21:44 +13:00
aroberts-fox
3f9113c475 Adding a not joined view for communities list 2024-12-05 13:34:24 -05: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
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
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
Hendrik L
25d5f67128 remove unused community.show_home setting 2024-12-04 14:48:18 +01:00
Hendrik L
87b1f40d2a allow admins to access deleted user profiles 2024-12-03 20:15:57 +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
a9e9c81272 reorder text in modlog 2024-12-02 16:17:54 +01:00
rimu
04cce6ec9d ban posts or comments - ui 2024-12-02 15:03:16 +13:00
rimu
570c754566 post_teaser_clickable on images 2024-11-30 13:46:59 +13: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
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
rimu
3b462377ce move post teaser clickable div so voting buttons still work 2024-11-24 09:19:58 +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
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
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
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
dfa95e3b12 tidy up profiles - large images 2024-10-21 15:55:55 +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
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
a2fae00936 post-reply soft-deletion: replace content in HTML with 'deleted by author/moderator' 2024-10-19 17:26:50 +00:00
rimu
f2af615d02 pagination on instance people list 2024-10-13 11:16:36 +13:00
rimu
c8922cc67f link user profiles to their instances 2024-10-13 10:53:47 +13:00
rimu
97396e9343 instance templates 2024-10-12 17:13:22 +13:00
rimu
1bee5a74b7 move instances list to dedicated package/blueprint 2024-10-12 16:25:20 +13: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
a7fbd57188 use smallest version of community thumbnail #333 2024-10-04 18:58:41 +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
ac71830c72 display json even if not valid json 2024-10-02 20:29:09 +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
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
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
bba8687567 use outer join instead #331 2024-09-30 13:49:06 +13:00
Alan Roberts
48bae31d6c adding user read-posts page 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
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
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
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
e6f3bd6fb4 Add pages for admins and community mods to see voting activity 2024-09-22 22:55:47 +00:00
rimu
3fb7470f33 lazy load streamable and redgifs 2024-09-22 22:05:21 +12:00
Alan Roberts
cf5bb65a9f making do_subscribe a celery task, messages to user updates 2024-09-13 11:10:10 -04:00
Alan Roberts
3838ad5701 Adding a pre-load of threadiverse communities to the admin area 2024-09-13 10:26:07 -04:00
rimu
30dedd19c5 show stats on user profile 2024-09-13 11:21:42 +12:00
rimu
a8be200aec small preview text 2024-09-11 10:56:14 +12:00
rimu
4fcdcc0b77 move import and export to dedicated form #316
rather than mixing it in with the settings
2024-09-10 08:29:44 +12:00
Alan Roberts
713516c6ae removing the admin bits and just making it a user export 2024-09-09 08:18:25 -04:00
Alan Roberts
b659e463d4 adding admin level export as well 2024-09-09 08:18:25 -04:00
Alan Roberts
a043876acc Adding an export for user settings and subscriptions 2024-09-09 08:18:25 -04:00
rimu
801bceb7df image width and height 2024-09-09 09:08:34 +12:00
rimu
ba0f7bac48 show community layout on admin list 2024-09-08 17:03:51 +12:00
rimu
58c3447a11 lazy load youtube preview 2024-09-08 13:23:37 +12:00
rimu
065d1e1078 only embed youtube vids on AC power 2024-09-08 12:31:16 +12:00
rimu
760477f00c use JS IntersectionObserver to lazy load youtube videos 2024-09-07 12:36:21 +12:00
rimu
dba016e05e show videos in teaser 2024-09-07 12:11:01 +12:00
rimu
0bae4c770f center voting buttons on mobile 2024-09-06 22:50:20 +12:00
rimu
7ab53804d1 larger images and videos 2024-09-06 22:39:27 +12:00
rimu
7d276136ed simplify stats code #319 2024-09-06 16:00:09 +12:00
rimu
f284be0b39 Merge pull request 'Adding admin.instances page' (#319) from JollyDevelopment/pyfedi:jollydev/admin-instances-overview into main
Reviewed-on: https://codeberg.org/rimu/pyfedi/pulls/319
2024-09-06 03:54:04 +00:00
rimu
0c7cd6d34c Merge remote-tracking branch 'origin/main' 2024-09-06 15:43:33 +12:00
rimu
b6a44b100c post teaser refactor to improve maintainability 2024-09-06 15:43:22 +12:00
freamon
9e8066bc4e Convert youtu.be links to youtube.com so they embed in post 2024-09-06 01:10:39 +00:00
Alan Roberts
6e3de6e9e2 adding users back in with better query 2024-09-05 13:24:30 -04:00
Alan Roberts
2249140bf3 better queries 2024-09-05 11:59:01 -04:00