Skip to content

Commit

Permalink
Merge pull request #657 from Steffo99/feature/akkoma-local-only
Browse files Browse the repository at this point in the history
Add support for local instance posts
  • Loading branch information
cheeaun authored Sep 7, 2024
2 parents 11d8758 + e2d9791 commit b280088
Show file tree
Hide file tree
Showing 5 changed files with 213 additions and 200 deletions.
5 changes: 5 additions & 0 deletions src/components/compose.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -1169,6 +1169,11 @@ function Compose({
<option value="public">
<Trans>Public</Trans>
</option>
{(supports('@pleroma/local-visibility-post') || supports('@akkoma/local-visibility-post')) &&
<option value="local">
<Trans>Local</Trans>
</option>
}
<option value="unlisted">
<Trans>Unlisted</Trans>
</option>
Expand Down
1 change: 1 addition & 0 deletions src/components/status.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ const memFetchAccount = pmem(throttle(fetchAccount));

const visibilityText = {
public: msg`Public`,
local: msg`Local`,
unlisted: msg`Unlisted`,
private: msg`Followers only`,
direct: msg`Private mention`,
Expand Down
Loading

0 comments on commit b280088

Please sign in to comment.