]> Untitled Git - lemmy.git/commit
Preferred usernames, banners and icons. (#1055)
authorDessalines <dessalines@users.noreply.github.com>
Wed, 5 Aug 2020 16:03:46 +0000 (12:03 -0400)
committerGitHub <noreply@github.com>
Wed, 5 Aug 2020 16:03:46 +0000 (12:03 -0400)
commit464ea862b10fa7b226b2550268e40d8e685a939c
tree9f74d3b19380cf40875ce8bb78430f44cd2732a8
parentc34fffc2c48b82e7c7aa2f139850c2917fc36438
Preferred usernames, banners and icons. (#1055)

* Re-organizing federation tests. #746 #1040

* Adding federation support for user bios. Fixes #992

* Adding icons, banners, and preferred usernames.

- Added optional community icons, and community banners.
- Added user banners.
- Added Site icon and banner, with custom favicon.
- Set up preferred usernames. Fixes #1017
- Added an additional post sort: Active
  - Hot rank now uses the published time.
  - Active uses the most recent comment time, and is default.
- DB Migration was required to add all these fields to the views.
- Added transfercommunity helper function.
- Removed title column from communities page.
- Abstracted an image-upload-form.tsx, and a banner-icon-header.tsx
- Fixes #899

* Some navbar fixes.

* Fixing css

* Some fixes.

- Showing correct user icon and banner after save without page reload.
- Abstracting diesel update overwrite.
- Adding some docs.

* Adding @ when a user doesn't have a preferred username.
58 files changed:
docs/src/about_ranking.md
docs/src/contributing_websocket_http_api.md
server/lemmy_db/src/activity.rs
server/lemmy_db/src/comment.rs
server/lemmy_db/src/comment_view.rs
server/lemmy_db/src/community.rs
server/lemmy_db/src/community_view.rs
server/lemmy_db/src/lib.rs
server/lemmy_db/src/moderator.rs
server/lemmy_db/src/password_reset_request.rs
server/lemmy_db/src/post.rs
server/lemmy_db/src/post_view.rs
server/lemmy_db/src/private_message.rs
server/lemmy_db/src/private_message_view.rs
server/lemmy_db/src/schema.rs
server/lemmy_db/src/site.rs
server/lemmy_db/src/site_view.rs
server/lemmy_db/src/user.rs
server/lemmy_db/src/user_mention.rs
server/lemmy_db/src/user_mention_view.rs
server/lemmy_db/src/user_view.rs
server/migrations/2020-08-03-000110_add_preferred_usernames_banners_and_icons/down.sql [new file with mode: 0644]
server/migrations/2020-08-03-000110_add_preferred_usernames_banners_and_icons/up.sql [new file with mode: 0644]
server/src/api/community.rs
server/src/api/site.rs
server/src/api/user.rs
server/src/apub/community.rs
server/src/apub/inbox/activities/delete.rs
server/src/apub/inbox/activities/remove.rs
server/src/apub/inbox/activities/undo.rs
server/src/apub/user.rs
server/src/code_migrations.rs
ui/assets/css/main.css
ui/src/api_tests/shared.ts
ui/src/components/admin-settings.tsx
ui/src/components/banner-icon-header.tsx [new file with mode: 0644]
ui/src/components/comment-node.tsx
ui/src/components/communities.tsx
ui/src/components/community-form.tsx
ui/src/components/community-link.tsx
ui/src/components/community.tsx
ui/src/components/image-upload-form.tsx [new file with mode: 0644]
ui/src/components/main.tsx
ui/src/components/navbar.tsx
ui/src/components/post-listing.tsx
ui/src/components/post.tsx
ui/src/components/private-message-form.tsx
ui/src/components/private-message.tsx
ui/src/components/search.tsx
ui/src/components/sidebar.tsx
ui/src/components/site-form.tsx
ui/src/components/sort-select.tsx
ui/src/components/symbols.tsx
ui/src/components/user-listing.tsx
ui/src/components/user.tsx
ui/src/interfaces.ts
ui/src/utils.ts
ui/translations/en.json