Mementomori.social is not your yet another instance with defaults. It is packed with small, but groundbreaking modifications. This page lists all of them.
On top of the regular Mastodon features like per-post visibility, content warnings and real time feed, Mementomori.social has the following features.
Mastodon Bird UI is something I've been designing since March, 2023. It's a new kind of modern Mastodon UI, inspired by Twitter UI in its good era. Yes, I know, the word bird and Twitter may be a turn-off for some, but I actually like what Twitter made to its UI in 2021. The changes after that are not that good, so I took the UI in 2021 as an inspiration and created this:

The UI can be found on GitHub and its updates can be followed under hashtags #BirdUI and #MastodonBirdUI on Mastodon.
rollecode/mastodon-bird-ui
Repository on GitHub
Algorithmic home feed as an opt-in experiment. Same idea as Twitter's open sourced ranking pipeline (candidates, score, mix) but stripped to what a single instance actually needs. Chronological stays the default, nothing changes if you do not turn this on.

On Mastodon 5 you turn it on from the home feed settings, "For you feed (experimental)". The Home link then becomes "For you" with a magic wand icon, and you can limit the feed to chosen languages.
mementomori-social/mastodon #18
Pull request on GitHub
On Mementomori.social you get to choose from these site themes in Preferences, Appearance:
- Mastodon Bird UI (the default). It follows the light or dark Mode and the Contrast setting next to it.
- Mastodon, the original Mastodon UI, with its accent colours
- Mastodon Bird UI (Ultra accessible)
- Mastodon Bird UI (Ultra accessible Plus+), with even larger text

On our instance we have focused to accessibility with a special touch towards users with acromatopsia, vision impairment or age vision. Mastodon Bird UI (Ultra accessible) theme consists of features such as
- Hashtags, links and mentions are in different colors
- Contrast is even starker than in default High contrast themes, black background with white text
- Font sizes are much larger throughout the site
- The font size is even larger on mobile
- All input boxes and modals have color to distinguish them from the background
- All colors are tested with a contrast checker and with a real person so that they have sufficient contrast ratios

Default Mastodon has small link previews for URLs. I wanted to make them big and was inspired by this ongoing feature request. This is actually now in the Mastodon core, so our instance just follows the core card, but styles it to be more minimal. When the article has a fediverse author, the card ends with "More from" and their name, as in Mastodon 4, instead of "Find the author in the Fediverse".
--- app/javascript/mastodon/features/status/components/card.jsx
@@ -165,8 +165,8 @@ export default class Card extends PureComponent {
const description = (
<div className='status-card__content' lang={language}>
{title}
- {!(horizontal || compact) && <p className='status-card__description' title={card.get('description')}>{card.get('description')}</p>}
<span className='status-card__host'>{provider}</span>
+ {<p className='status-card__description' title={card.get('description')}>{card.get('description')}</p>}
</div>
);
@@ -231,7 +231,7 @@ export default class Card extends PureComponent {
return (
<div className={className} ref={this.setRef} onClick={revealed ? null : this.handleReveal} role={revealed ? 'button' : null}>
{embed}
- {!compact && description}
+ {description}
</div>
);
} else if (card.get('image')) {

A subtle change, suggested by ikkeT. See the post presenting it. See JavaScript changes here and Style changes here.

The default Mastodon Advanced interface allows 4 hashtags per column. We allow 15. There is a closed issue that is still an issue on 4.1.4.
--- app/javascript/mastodon/features/hashtag_timeline/components/column_settings.jsx
@@ -48,7 +48,7 @@ class ColumnSettings extends PureComponent {
// Prevent changes that add more than 4 tags, but allow removing
// tags that were already added before
- if ((value.length > 4) && !(value < oldValue)) {
+ if ((value.length > 15) && !(value < oldValue)) {
return;
}
--- app/models/tag_feed.rb
@@ -1,7 +1,7 @@
# frozen_string_literal: true
class TagFeed < PublicFeed
- LIMIT_PER_MODE = 4
+ LIMIT_PER_MODE = 15
# @param [Tag] tag
# @param [Account] account

Mementomori.social has a lot of custom emojis. You can also request your own by sending a post to @rolle. Good emoji source: Slackmojis.

Default Mastodon allows max. 4 options and 50 character limit per option. We have increased them so that posting polls is not too strict.
--- app/javascript/mastodon/features/compose/components/poll_form.jsx
@@ -164,7 +164,7 @@ class PollForm extends ImmutablePureComponent {
</ul>
<div className='poll__footer'>
- <button type='button' disabled={options.size >= 4} className='button button-secondary' onClick={this.handleAddOption}><Icon id='plus' /> <FormattedMessage {...messages.add_option} /></button>
+ <button type='button' disabled={options.size >= 15} className='button button-secondary' onClick={this.handleAddOption}><Icon id='plus' /> <FormattedMessage {...messages.add_option} /></button>
{/* eslint-disable-next-line jsx-a11y/no-onchange */}
<select value={expiresIn} onChange={this.handleSelectDuration}>
--- app/validators/poll_validator.rb
@@ -1,8 +1,8 @@
# frozen_string_literal: true
class PollValidator < ActiveModel::Validator
- MAX_OPTIONS = 4
- MAX_OPTION_CHARS = 50
+ MAX_OPTIONS = 15
+ MAX_OPTION_CHARS = 150
MAX_EXPIRATION = 1.month.freeze
MIN_EXPIRATION = 5.minutes.freeze

Mastodon's default is 500. We have 10000. Never have to think about the lenght of your posts any more.
--- app/javascript/mastodon/features/compose/components/compose_form.jsx
@@ -100,7 +100,7 @@ class ComposeForm extends ImmutablePureComponent {
const fulltext = this.getFulltextForCharacterCounting();
const isOnlyWhitespace = fulltext.length !== 0 && fulltext.trim().length === 0;
- return !(isSubmitting || isUploading || isChangingUpload || length(fulltext) > 500 || (isOnlyWhitespace && !anyMedia));
+ return !(isSubmitting || isUploading || isChangingUpload || length(fulltext) > 10000 || (isOnlyWhitespace && !anyMedia));
};
handleSubmit = (e) => {
@@ -298,7 +298,7 @@ class ComposeForm extends ImmutablePureComponent {
</div>
<div className='character-counter__wrapper'>
- <CharacterCounter max={500} text={this.getFulltextForCharacterCounting()} />
+ <CharacterCounter max={10000} text={this.getFulltextForCharacterCounting()} />
</div>
</div>
</div>
--- app/serializers/rest/instance_serializer.rb
@@ -11,7 +11,7 @@ class ContactSerializer < ActiveModel::Serializer
attributes :domain, :title, :version, :source_url, :description,
:usage, :thumbnail, :languages, :configuration,
- :registrations
+ :registrations, :max_toot_chars
has_one :contact, serializer: ContactSerializer
has_many :rules, serializer: REST::RuleSerializer
@@ -89,6 +89,10 @@ def registrations
}
end
+ def max_toot_chars
+ 10_000
+ end
+
private
def registrations_enabled?
View full diff on GitHub

The Vanilla Mastodon doesn't show these amounts and will likely never show them natively as per this comment. However as an OCD person the metrics matter so on Mementomori.social you'll see full amount of comments. (Related issue on Mastodon)
Metrics show up on Explore, Bookmarks and Favourites from 31st of July, 2023. Comment count is accurate everywhere.
On Mastodon 5 the numbers roll to their new value when they change. @rolle has offered this to Mastodon core:
mastodon/mastodon #41576
Pull request on GitHub

--- app/javascript/mastodon/components/status_action_bar.jsx
@@ -361,9 +361,9 @@ class StatusActionBar extends ImmutablePureComponent {
return (
<div className='status__action-bar'>
- <IconButton className='status__action-bar__button' title={replyTitle} icon={status.get('in_reply_to_account_id') === status.getIn(['account', 'id']) ? 'reply' : replyIcon} onClick={this.handleReplyClick} counter={status.get('replies_count')} obfuscateCount />
- <IconButton className={classNames('status__action-bar__button', { reblogPrivate })} disabled={!publicStatus && !reblogPrivate} active={status.get('reblogged')} title={reblogTitle} icon='retweet' onClick={this.handleReblogClick} counter={withCounters ? status.get('reblogs_count') : undefined} />
- <IconButton className='status__action-bar__button star-icon' animate active={status.get('favourited')} title={intl.formatMessage(messages.favourite)} icon='star' onClick={this.handleFavouriteClick} counter={withCounters ? status.get('favourites_count') : undefined} />
+ <IconButton className='status__action-bar__button' title={replyTitle} icon={status.get('in_reply_to_account_id') === status.getIn(['account', 'id']) ? 'reply' : replyIcon} onClick={this.handleReplyClick} counter={status.get('replies_count')} />
+ <IconButton className={classNames('status__action-bar__button', { reblogPrivate })} disabled={!publicStatus && !reblogPrivate} active={status.get('reblogged')} title={reblogTitle} icon='retweet' onClick={this.handleReblogClick} counter={status.get('reblogs_count')} />
+ <IconButton className='status__action-bar__button star-icon' animate active={status.get('favourited')} title={intl.formatMessage(messages.favourite)} icon='star' onClick={this.handleFavouriteClick} counter={status.get('favourites_count')} />
<IconButton className='status__action-bar__button bookmark-icon' disabled={!signedIn} active={status.get('bookmarked')} title={intl.formatMessage(messages.bookmark)} icon='bookmark' onClick={this.handleBookmarkClick} />
{filterButton}
--- app/javascript/mastodon/features/bookmarked_statuses/index.jsx
@@ -98,6 +98,7 @@ class Bookmarks extends ImmutablePureComponent {
onLoadMore={this.handleLoadMore}
emptyMessage={emptyMessage}
bindToDocument={!multiColumn}
+ withCounters
/>
<Helmet>
--- app/javascript/mastodon/features/favourited_statuses/index.jsx
@@ -98,6 +98,7 @@ class Favourites extends ImmutablePureComponent {
onLoadMore={this.handleLoadMore}
emptyMessage={emptyMessage}
bindToDocument={!multiColumn}
+ withCounters
/>
<Helmet>
--- app/javascript/mastodon/features/pinned_statuses/index.jsx
@@ -57,6 +57,7 @@ class PinnedStatuses extends ImmutablePureComponent {
scrollKey='pinned_statuses'
hasMore={hasMore}
bindToDocument={!multiColumn}
+ withCounters
/>
<Helmet>
View full diff on GitHub
--- app/javascript/mastodon/components/animated_number.tsx
@@ -12,7 +12,7 @@ const obfuscatedCount = (count: number) => {
} else if (count <= 1) {
return count;
} else {
- return '1+';
+ return count;
}
};
By default Mastodon searches only for your own posts and the ones you have answered to, if that. Search provided by Elasticsearch. On Mementomori.social you can search all posts the Mastodon instance is aware of, from the users who want to be found ("Include public posts in search results" enabled on settings). This is actually now in the Mastodon core, so our instance just follows the core feature.

VyrCossont/mastodon #8
Pull request on GitHub
For posts other than your language (set in profile) a "Translate" link is shown, by pressing it you can see accurate translation provided by DeepL.

If you read several languages, you can hide the Translate button for them: Preferences, Other, Translations, "Hide the Translate button". Posts in other languages keep the button. This is also asked for in Mastodon core, see the feature request.
By default Mastodon shows 100 posts on the Explore tab. We show 500.
--- app/models/trends/statuses.rb
@@ -3,7 +3,7 @@
class Trends::Statuses < Trends::Base
PREFIX = 'trending_statuses'
- BATCH_SIZE = 100
+ BATCH_SIZE = 500
self.default_options = {
threshold: 5,
Let it snow! ❄️ See update.
--- app/javascript/mastodon/common.js
@@ -10,6 +10,115 @@ export function start() {
}
}
+function animate(ctx, snowflakes, canvas, maxFlakes) {
+ ctx.clearRect(0, 0, canvas.width, canvas.height);
+
+ // Add new snowflake if we haven't reached the maximum
+ if (snowflakes.length < maxFlakes && Math.random() < 0.05) { // 5% chance each frame to add a new flake
+ snowflakes.push({
+ x: Math.random() * canvas.width,
+ y: 0, // Start from top
+ radius: Math.random() * 7 + 3,
+ speed: Math.random() * 0.5 + 0.3,
+ opacity: Math.random() * 0.6 + 0.4
+ });
+ }
+
+ snowflakes.forEach(flake => {
+ // Draw snowflake shape
+ ctx.save();
+ ctx.beginPath();
+ for (let i = 0; i < 6; i++) {
+ ctx.moveTo(flake.x, flake.y);
+ ctx.lineTo(
+ flake.x + Math.cos(Math.PI * 2 * i / 6) * flake.radius,
+ flake.y + Math.sin(Math.PI * 2 * i / 6) * flake.radius
+ );
+ }
+ ctx.strokeStyle = `rgba(255, 255, 255, ${flake.opacity})`;
+ ctx.lineWidth = 1.5;
+ ctx.stroke();
+ ctx.restore();
+
+ // Update position with gentler movement
+ flake.x += Math.sin(flake.y / 50) * 0.3;
+ flake.y += flake.speed * 0.5;
+
+ if (flake.y > canvas.height) {
View full diff on GitHub

--- app/services/fetch_link_card_service.rb
@@ -57,7 +57,11 @@ def html
headers = {
'Accept' => 'text/html',
'Accept-Language' => "#{I18n.default_locale}, *;q=0.5",
- 'User-Agent' => "#{Mastodon::Version.user_agent} Bot",
+ 'User-Agent' => if @url.match?(/\b(youtube\.com|youtu\.be|m\.youtube\.com)\b/)
+ "Mozilla/5.0 (compatible; Discordbot/2.0; +https://discord.com)"
+ else
+ "#{Mastodon::Version.user_agent} Bot"
+ end
}
@html = Request.new(:get, @url).add_headers(headers).perform do |res|
In the core version, only www.youtube.com previews work. On mementomori.social, all YouTube link variations generate a preview.

Vanilla Mastodon doesn't have a feature for this, gifs and videos are not autoplaying - especially for guests.
--- app/models/user_settings.rb
@@ -35,7 +35,7 @@ class KeyError < Error; end
setting :reduce_motion, default: false
setting :expand_content_warnings, default: false
setting :display_media, default: 'default', in: %w(default show_all hide_all)
- setting :auto_play, default: false
+ setting :auto_play, default: true
setting :emoji_style, default: 'auto', in: %w(auto native twemoji)
end
--- config/settings.yml
@@ -33,6 +33,8 @@ defaults: &defaults
backups_retention_period: 7
captcha_enabled: false
allow_referrer_origin: false
+ auto_play_gif: true
+ reduce_motion: false
development:
<<: *defaults
--- app/javascript/mastodon/components/gif.tsx
@@ -1,12 +1,12 @@
import { useHovering } from 'mastodon/hooks/useHovering';
-import { autoPlayGif } from 'mastodon/initial_state';
+import { autoPlayGif, reduceMotion } from 'mastodon/initial_state';
export const GIF: React.FC<{
src: string;
staticSrc: string;
className: string;
animate?: boolean;
-}> = ({ src, staticSrc, className, animate = autoPlayGif }) => {
+}> = ({ src, staticSrc, className, animate = autoPlayGif || !reduceMotion }) => {
const { hovering, handleMouseEnter, handleMouseLeave } = useHovering(animate);
return (
--- app/javascript/mastodon/components/media_gallery.jsx
@@ -15,7 +15,7 @@ import { Blurhash } from 'mastodon/components/blurhash';
import { SpoilerButton } from 'mastodon/components/spoiler_button';
import { formatTime } from 'mastodon/features/video';
-import { autoPlayGif, displayMedia, useBlurhash } from '../initial_state';
+import { autoPlayGif, displayMedia, reduceMotion, useBlurhash } from '../initial_state';
class Item extends PureComponent {
@@ -56,7 +56,7 @@ class Item extends PureComponent {
};
getAutoPlay() {
- return this.props.autoplay || autoPlayGif;
+ return this.props.autoplay || autoPlayGif || !reduceMotion;
}
hoverToPlay () {
--- app/javascript/mastodon/features/account_gallery/components/media_item.tsx
@@ -9,7 +9,7 @@ import { AltTextBadge } from 'mastodon/components/alt_text_badge';
import { Blurhash } from 'mastodon/components/blurhash';
import { Icon } from 'mastodon/components/icon';
import { formatTime } from 'mastodon/features/video';
View full diff on GitHub
In vanilla Mastodon you can only follow someone from their profile or from a follow suggestion. On mementomori.social you can turn on a small follow button that appears on the avatar of anyone you do not follow yet, everywhere posts are shown: home, local and federated timelines, hashtags, notifications, threads, bookmarks, favourites and Explore. Clicking it opens the same follow confirmation as elsewhere.
Boosts are left alone, since they already show two avatars.

The setting is off by default. You can turn it on from Preferences, Appearance, "Show follow buttons on avatars".
If you run an instance and want the same, these are the commits in order. The first adds the badge itself, the second the confirmation dialog, and the third makes it work in every view behind an opt-in setting.
--- app/javascript/mastodon/actions/timelines.js
@@ -4,6 +4,7 @@ import api, { getLinks } from 'mastodon/api';
import { compareId } from 'mastodon/compare_id';
import { usePendingItems as preferPendingItems } from 'mastodon/initial_state';
+import { fetchRelationships } from './accounts';
import { importFetchedStatus, importFetchedStatuses } from './importer';
import { submitMarkers } from './markers';
import { timelineDelete } from './timelines_typed';
@@ -179,7 +180,29 @@ export const expandHomeTimeline = ({ maxId } = {}) => (dispatch, getS
params = { ranked: true, discover, offset: 0 };
}
- return dispatch(expandTimeline('home', '/api/v1/timelines/home', params));
+ const promise = dispatch(expandTimeline('home', '/api/v1/timelines/home', params));
+
+ if (ranked) {
+ // The follow badge needs relationships for every author on the page
+ void promise.then(() => {
+ const state = getState();
+ const accountIds = state
+ .getIn(['timelines', 'home', 'items'], ImmutableList())
+ .filter(id => id !== null && /^\d+$/.test(id))
+ .map(id => state.getIn(['statuses', id, 'account']))
+ .filter(accountId => accountId && state.getIn(['relationships', accountId], null) === null)
+ .toSet()
+ .toArray();
+
+ if (accountIds.length > 0) {
+ dispatch(fetchRelationships(accountIds));
+ }
+
+ return undefined;
+ });
+ }
+
+ return promise;
};
export const expandPublicTimeline = ({ maxId, onlyMedia, onlyRemote } = {}) => expandTimeline(`public${onlyRemote ? ':remote' : ''}${onlyMedia ? ':media' : ''}`, '/api/v1/timelines/public', { remote: !!onlyRemote, max_id: maxId, only_media: !!onlyMedia });
export const expandCommunityTimeline = ({ maxId, onlyMedia } = {}) => expandTimeline(`community${onlyMedia ? ':media' : ''}`, '/api/v1/timelines/public', { local: true, max_id: maxId, only_media: !!onlyMedia });
View full diff on GitHub
--- app/javascript/mastodon/components/avatar_follow_badge.tsx
@@ -4,7 +4,7 @@ import { useIntl, defineMessages } from 'react-intl';
import { useIdentity } from '@/mastodon/identity_context';
import AddIcon from '@/material-icons/400-24px/add.svg?react';
-import { followAccount } from 'mastodon/actions/accounts';
+import { openModal } from 'mastodon/actions/modal';
import { Icon } from 'mastodon/components/icon';
import { me } from 'mastodon/initial_state';
import { useAppDispatch, useAppSelector } from 'mastodon/store';
@@ -29,7 +29,12 @@ export const AvatarFollowBadge: React.FC<{ accountId?: string }> = ({
event.stopPropagation();
if (accountId) {
- dispatch(followAccount(accountId));
+ dispatch(
+ openModal({
+ modalType: 'CONFIRM_FOLLOW',
+ modalProps: { accountId },
+ }),
+ );
}
},
[dispatch, accountId],
--- app/javascript/mastodon/features/ui/components/confirmation_modals/follow.tsx
@@ -0,0 +1,84 @@
+import { useCallback, useEffect } from 'react';
+
+import { defineMessages, FormattedMessage, useIntl } from 'react-intl';
+
+import { Link } from 'react-router-dom';
+
+import { fetchAccount, followAccount } from 'mastodon/actions/accounts';
+import { AccountBio } from 'mastodon/components/account_bio';
+import { Avatar } from 'mastodon/components/avatar';
+import { FollowersCounter } from 'mastodon/components/counters';
+import { DisplayName } from 'mastodon/components/display_name';
+import { ShortNumber } from 'mastodon/components/short_number';
+import { domain } from 'mastodon/initial_state';
+import { useAppDispatch, useAppSelector } from 'mastodon/store';
View full diff on GitHub
--- app/javascript/mastodon/actions/importer/index.js
@@ -1,6 +1,8 @@
+import { showFollowBadges } from 'mastodon/initial_state';
import { createPollFromServerJSON } from 'mastodon/models/poll';
import { importAccounts } from './accounts';
+import { fetchRelationships } from '../accounts';
import { importCustomEmoji } from './emoji';
import { normalizeStatus } from './normalizer';
import { importPolls } from './polls';
@@ -52,6 +54,35 @@ export function importFetchedAccounts(accounts) {
return importAccounts({ accounts: normalAccounts });
}
+// The avatar follow badge stays hidden until the relationship is known. Statuses
+// also arrive one at a time over streaming, so ids are batched into one request.
+let pendingRelationshipIds = new Set();
+let relationshipFetchTimer = null;
+
+function queueRelationshipFetch(accounts, dispatch, getState) {
+ if (!showFollowBadges) {
+ return;
+ }
+
+ accounts.forEach(account => {
+ if (account?.id && getState().getIn(['relationships', account.id], null) === null) {
+ pendingRelationshipIds.add(account.id);
+ }
+ });
+
+ if (pendingRelationshipIds.size === 0 || relationshipFetchTimer) {
+ return;
+ }
+
+ relationshipFetchTimer = setTimeout(() => {
+ const ids = [...pendingRelationshipIds];
+
+ pendingRelationshipIds = new Set();
+ relationshipFetchTimer = null;
+ dispatch(fetchRelationships(ids));
View full diff on GitHub
The badge only renders once the browser knows whether you follow the author, so the third commit also asks the API for those relationships as posts are loaded. That request is skipped entirely while the setting is off.
Liking a post pops the heart with a small burst of confetti, and boosting gives the boost icon a quick spin. Both respect the reduce motion setting. @rolle has offered both to Mastodon core:

mastodon/mastodon #41573
Pull request on GitHub
mastodon/mastodon #41574
Pull request on GitHub
The right sidebar shows trending hashtags with their usage graphs and suggestions for who to follow, so you see them without opening Explore. The search bar stays there on Explore too. Visitors who are not logged in get the search bar and trending hashtags there as well.

Mastodon 5 shows a separate bar with the unread count above the notifications. We keep the Mastodon 4 way instead: a checkmark button in the notifications header marks everything as read, and unread notifications have a darker background.

In Mastodon 5, clicking a hashtag in a post opens a small menu first. If you prefer the classic way, turn on Preferences, Appearance, "Open hashtags directly". Clicking a hashtag then opens its feed right away, both in the post text and in the hashtag row below it.
The setting is off by default.
--- app/javascript/mastodon/components/status/handled_link.tsx
@@ -7,6 +7,7 @@ import { mergeProps } from '@react-aria/utils';
import type { ApiMentionJSON } from '@/mastodon/api_types/statuses';
import { getCollectionPath } from '@/mastodon/features/collections/utils';
+import { directHashtagLinks } from '@/mastodon/initial_state';
import type { OnElementHandler } from '@/mastodon/utils/html';
import { HashtagMenu } from '../hashtag_menu';
@@ -46,13 +47,19 @@ export const HandledLink: React.FC<
!text.includes('%')
) {
const hashtag = text.slice(1).trim();
+ const hashtagPath = `/tags/${encodeURIComponent(hashtag)}`;
+
+ if (directHashtagLinks) {
+ return (
+ <Link className={classes.hashtag} to={hashtagPath}>
+ {children}
+ </Link>
+ );
+ }
return (
<HashtagMenu tagId={hashtag} accountId={hashtagAccountId}>
- <MenuTriggerText
- className={classes.hashtag}
- href={`/tags/${encodeURIComponent(hashtag)}`}
- >
+ <MenuTriggerText className={classes.hashtag} href={hashtagPath}>
{children}
</MenuTriggerText>
</HashtagMenu>
--- app/javascript/mastodon/components/status/hashtag_bar.tsx
@@ -4,6 +4,7 @@ import classNames from 'classnames';
import { useOverflowButton } from '@/mastodon/hooks/useOverflow';
import { useToggle } from '@/mastodon/hooks/useToggle';
+import { directHashtagLinks } from '@/mastodon/initial_state';
View full diff on GitHub
With Slow mode on (Preferences, Appearance), new posts wait behind a "new items" bar at the top of the feed. In Mastodon 5 the "Scroll to top" button only scrolls up, so you had to click twice to see them. Here the button also shows the waiting posts.
--- app/javascript/mastodon/components/column_header/index.tsx
@@ -32,6 +32,8 @@ export interface ColumnHeaderProps {
// the `fromMastodon` location state
withBackButton?: boolean | 'auto';
withUnreadMarker?: boolean;
+ // Also called by the scroll to top button, e.g. to show queued posts
+ onScrollToTop?: () => void;
extraButtons?: React.ReactNode;
extraStickyContent?: React.ReactNode;
className?: string;
@@ -41,6 +43,7 @@ export const ColumnHeader: React.FC<ColumnHeaderProps> = ({
title,
withBackButton,
withUnreadMarker,
+ onScrollToTop,
extraButtons,
extraStickyContent,
className,
@@ -73,6 +76,11 @@ export const ColumnHeader: React.FC<ColumnHeaderProps> = ({
[scrollTop],
);
+ const handleScrollToTopClick = useCallback(() => {
+ scrollTop();
+ onScrollToTop?.();
+ }, [scrollTop, onScrollToTop]);
+
const hasScrollToTopButton = !isScrolledToTop && withUnreadMarker;
const headerRef = useTrackColumnHeaderHeight();
@@ -113,7 +121,7 @@ export const ColumnHeader: React.FC<ColumnHeaderProps> = ({
size='sm'
color='accent'
variant='solid'
- onClick={scrollTop}
+ onClick={handleScrollToTopClick}
leadingIcon={ArrowUpIcon}
className={classes.unreadButton}
>
--- app/javascript/mastodon/features/community_timeline/index.jsx
View full diff on GitHub
Hashtag, mention and emoji suggestions open below the line you are typing, also when replying. In Mastodon 5 they covered the line when you replied. @rolle has offered this to Mastodon core:
mastodon/mastodon #41587
Pull request on GitHub
On mobile, tapping Done in the image description editor keeps your new post open. In Mastodon 5 it closed the post you were writing.
--- app/javascript/mastodon/hooks/useCloseOnHistoryBack.ts
@@ -52,8 +52,11 @@ export function useCloseOnHistoryBack(
);
}
- const unlisten = history.listen((_, action) => {
- if (action === 'POP') {
+ const unlisten = history.listen((location, action) => {
+ // Back from a modal opened on top lands on our own entry; stay open
+ const landedKey = (location as MastodonLocation).state?.mastodonModalKey;
+
+ if (action === 'POP' && landedKey !== key) {
close();
}
});
When the text you write looks like another language than the one selected for the post, the language button in the composer turns yellow, as in Mastodon 4. The "Change this post's language" banner also comes back on your next post if you dismiss it, instead of disappearing for good.
mastodon/mastodon
Repository on GitHub
Mastodon 5 moved Notifications to the bottom of the left column, next to Messages and Saved. If you prefer the classic place, turn on Preferences, Appearance, "Show Notifications in the main menu". Notifications then shows as the second item in the menu, right below Home, with the unread count on the bell as in Mastodon 4. It also stays in the bottom row.
The setting is off by default.
--- app/javascript/mastodon/features/navigation_panel/redesign/index.tsx
@@ -30,6 +30,7 @@ import { useIdentity } from '@/mastodon/identity_context';
import {
disabledAccountId,
localLiveFeedAccess,
+ notificationsInMenu,
remoteLiveFeedAccess,
trendsEnabled,
} from '@/mastodon/initial_state';
@@ -195,6 +196,18 @@ export const RedesignNavigationPanel: React.FC<{
>
{homeLink.label}
</NavigationLink>
+ {notificationsInMenu && (
+ <NavigationLink
+ to='/notifications'
+ iconComponent={BellIcon}
+ badgeCount={notificationsCount}
+ >
+ <FormattedMessage
+ id='tabs_bar.notifications'
+ defaultMessage='Notifications'
+ />
+ </NavigationLink>
+ )}
<ExploreLink />
<PublicFeedsLink />
@@ -300,17 +313,19 @@ export const RedesignNavigationPanel: React.FC<{
{mode !== 'slide-out' && (
<>
<ul className={classes.footerNav}>
- <NavigationLink
- stacked
- to='/notifications'
- iconComponent={BellIcon}
- badgeCount={notificationsCount}
- >
- <FormattedMessage
- id='tabs_bar.notifications'
View full diff on GitHub