Skip to content

Commit

Permalink
Experiments with list-only statuses
Browse files Browse the repository at this point in the history
  • Loading branch information
Steffo99 committed Sep 4, 2024
1 parent 74c6bf6 commit cc8194c
Show file tree
Hide file tree
Showing 3 changed files with 215 additions and 204 deletions.
23 changes: 13 additions & 10 deletions src/components/compose.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -1158,13 +1158,13 @@ function Compose({
>
<Icon icon={visibilityIconsMap[visibility]} alt={visibility} />
<select
name="visibility"
value={visibility}
onChange={(e) => {
setVisibility(e.target.value);
}}
disabled={uiState === 'loading' || !!editStatus}
dir="auto"
name="visibility"
value={visibility}
onChange={(e) => {
setVisibility(e.target.value);
}}
disabled={uiState === "loading" || !!editStatus}
dir="auto"
>
<option value="public">
<Trans>Public</Trans>
Expand All @@ -1178,12 +1178,15 @@ function Compose({
<option value="direct">
<Trans>Private mention</Trans>
</option>
<option value="list:10">
<Trans>Specific list</Trans>
</option>
</select>
</label>{' '}
</label>{" "}
</div>
<Textarea
ref={textareaRef}
placeholder={
ref={textareaRef}
placeholder={
replyToStatus
? t`Post your reply`
: editStatus
Expand Down
3 changes: 3 additions & 0 deletions src/components/status.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ const visibilityText = {
unlisted: msg`Unlisted`,
private: msg`Followers only`,
direct: msg`Private mention`,
list: msg`Specific list`,
};

const isIOS =
Expand Down Expand Up @@ -297,6 +298,8 @@ function Status({
// Non-Mastodon
emojiReactions,
} = status;

console.debug(status);

const [languageAutoDetected, setLanguageAutoDetected] = useState(null);
useEffect(() => {
Expand Down
Loading

0 comments on commit cc8194c

Please sign in to comment.