* origin/main: (26 commits)
Adding jsit to codeowners.
Cleanup, only check for /u/ if /c/ and /m/ checks fail
Rename function to be more generic, since it parses users
Typescript linter fixes
bandaid fix our video embeds
Remove pipe from community link regex
Add missing classes
Use shorter regex in community link parser
Move regex pattern to config
Update community link markdown parsing
Fix avatar alignment issue (#1475)
Omit user-scalable to use default
Update getHttpBase dependency reference
Enable users to zoom on mobile
rethink it a bit
rethink it a bit
add fallback style tag
Add community link class
prettier
Add local community link parser plugin for Markdown-It
...
* Fix create post for community not having community selected by default
* Fix issue where fields would reset when creating post
* Run prettier and lint
This should correctly size the embedded video iframe to the full
available width, which looks better and is compatible with mobile
devices.
Also add the "allowfullscreen" modifier to the iframe so that the video
can be expanded to the browser's fullscreen mode.
Also add the post.embed_title as the iframe "title" attribute.
* feat(post): Move post domain and preview button beneath post title
* fix: Move the 'show body' button back to actions line; only show if there is something to show; add 'active' color
* fix: Fix some margins
* Beginning work on websocket -> http client conversion.
* About 30% done.
* half done.
* more done.
* Almost passing lint.
* Passing lint, but untested.
* Add back in event listeners.
* Fixing some community forms.
* Remove webpack cache.
* fixing some more.
* Fixed ISOwrappers.
* A few more fixes.
* Refactor utils
* Fix instance add/remove buttons
* Not catching errors in isoWrapper.
* Wrap Http client
* Fixing up tagline and ratelimit forms.
* Make all http client wrapping be in one place
* Reworking some more forms.
* Upgrading lemmy-js-client.
* Fixing verify email.
* Fix linting errors
* Upgrading woodpecker node.
* Fix comment scrolling rerender bug.
* Fixing a few things, commenting out props for now.
* v0.18.0-beta.1
* Trying to fix woodpecker, 1.
* Trying to fix woodpecker, 2.
* Handroll prompt
* Add navigation prompt to other pages
* Fix prompt navigation bug
* Fix prompt bug introduced from last bug fix
* Fix PWA bug
* Fix isoData not working
* Fix search page update url
* Fix sharp issue.
* v0.18.0-beta.2
* Make create post pre-fetch communities
* Fix bug from last commit
* Fix issue of posts/comments not being switched when changing select options
* Fix unnecessary fetches on home screen
* Make circular icon buttons not look stupid
* Prevent unnecessary fetches
* Make login experience smoother
* Add PWA shortcuts
* Add related application to PWA
* Update translations
* Forgot to add post editing.
* Fixing site setup.
* Deploy script setup.
* v0.18.0-beta.4
* Sanitize again.
* Adding sanitize json function.
* Upping version.
* Another sanitize fix.
* Upping version.
* Prevent search nav item from disappearing when on search page
* Allow admin and mod actions on non-local comments.
* Fix mobile menu collapse bug
* Completely fix prompt component
* Fix undefined value checks in use_http_client_2 (#1230)
* fix: filter out undefined from posts
* fix: emoji initialisation passing undefined
* fix: || => ?? to be more explicit
* linting
---------
Co-authored-by: Alex Maras <alexmaras@gmail.com>
* Re-add accidentally removed state
* Fix dropdown bug
* Use linkEvent where appropriate
* Fix navigation warnings.
---------
Co-authored-by: Dessalines <tyhou13@gmx.com>
Co-authored-by: Alex Maras <dev@alexmaras.com>
Co-authored-by: Alex Maras <alexmaras@gmail.com>
Lemmy-ui currently preselects the first language in the user
settings when creating a new post or comment. This is a bad
idea because this language might not actually be allowed in
the community. It is better to pass the language as None if
the user didnt specify it explicitly, because then the backend
can smartly choose a language based on the overlap of user
languages and community languages.
This fixes the problem described in
[this thread](https://lemmy.ml/post/1066608), where a user
tries to post in a community that has only English allowed,
with all languages enabled in user settings. In this case
lemmy-ui preselects "undetermined language" as default, which
is not allowed and results in an error. This PR fixes the issue
because it lets the backend automatically select the correct
language (English).
It doesnt need to be emphasized so much that a user is banned.
Anyway this can already be seen in the mod log. For users who
are banned from the entire site it is still shown on the profile.
Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
* Add logic for dynamically generating web manifest
* Make PWA icon get autogenerated
* Make service worker work
* Tweak things for PWA
* Handle apple icons and refactor
* Update prod dockerfile
* Remove jimp
* Remove unnecessary option
* Use different function syntax
* Using auto-generated types from ts-rs.
- Fixes#998
- Added support for new `GetFederatedInstances`
- Fixed a few bugs in the process.
* Update imports to use SleeplessOne1917's fix.
* feat: Add multiple image upload
* refactor: Slight cleanup
* feat: Add progress bar for multi-image upload
* fix: Fix progress bar
* fix: Messed up fix last time
* refactor: Use await where possible
* Add query params to search page
* Update translation logic
* Did suggested PR changes
* Updating translations
* Fix i18 issue
* Make prettier actually check src in hopes it will fix CI issue
* Make home page use query params in URL
* Remove unnecessary part of private message url
* Make communities page use query params
* Make community page use query params
* Make user profile use query params
* Make modlog use query params
* Replace choices.js searchable select entirely
* Make 404 screen show up when expected
* Refactor query params code
* Remove unnecessary boolean literal
* Fix query param bug
* Address bug with searchable select and initial fetch
* Only import what is needed from bootstrap
* Undo change to comment nodes component
* Convert closure style functions to normal functions
* Updated translations
* Use translation for loading
* Fix create post select community bug
* Fix community query params bug
* feat: Add multiple image upload
* refactor: Slight cleanup
* feat: Add progress bar for multi-image upload
* fix: Fix progress bar
* fix: Messed up fix last time
* refactor: Use await where possible
* Update translation logic
* Did suggested PR changes
* Updating translations
* Fix i18 issue
* Make prettier actually check src in hopes it will fix CI issue
* Removing monads. Fixes#884
* Fixing post fetching.
* Dont show not_logged_in error for navbar.
* Adding the lemmy-js-client RC.
* Fixing registration application mode