Remove emoji reactions view by notification
This commit is contained in:
parent
f8ca193b89
commit
fed10012e4
@ -142,9 +142,11 @@ const excludeTypesFromFilter = filter => {
|
||||
'favourite',
|
||||
'emoji_reaction',
|
||||
'reblog',
|
||||
'status_reference',
|
||||
'mention',
|
||||
'poll',
|
||||
'status',
|
||||
'list_status',
|
||||
'update',
|
||||
'admin.sign_up',
|
||||
'admin.report',
|
||||
|
@ -204,6 +204,7 @@ class Status extends ImmutablePureComponent {
|
||||
}),
|
||||
contextType: PropTypes.string,
|
||||
...WithOptionalRouterPropTypes,
|
||||
withoutEmojiReactions: PropTypes.bool,
|
||||
};
|
||||
|
||||
// Avoid checking props that are functions (and whose equality will always
|
||||
@ -675,7 +676,7 @@ class Status extends ImmutablePureComponent {
|
||||
const expanded = !status.get('hidden') || status.get('spoiler_text').length === 0;
|
||||
|
||||
let emojiReactionsBar = null;
|
||||
if (status.get('emoji_reactions')) {
|
||||
if (!this.props.withoutEmojiReactions && status.get('emoji_reactions')) {
|
||||
const emojiReactions = status.get('emoji_reactions');
|
||||
emojiReactionsBar = <StatusEmojiReactionsBar emojiReactions={emojiReactions} status={status} onEmojiReact={this.props.onEmojiReact} onUnEmojiReact={this.props.onUnEmojiReact} />;
|
||||
}
|
||||
|
@ -186,6 +186,7 @@ class Notification extends ImmutablePureComponent {
|
||||
cachedMediaWidth={this.props.cachedMediaWidth}
|
||||
cacheMediaWidth={this.props.cacheMediaWidth}
|
||||
unread={this.props.unread}
|
||||
withoutEmojiReactions={true}
|
||||
/>
|
||||
);
|
||||
}
|
||||
@ -214,6 +215,7 @@ class Notification extends ImmutablePureComponent {
|
||||
updateScrollBottom={this.props.updateScrollBottom}
|
||||
cachedMediaWidth={this.props.cachedMediaWidth}
|
||||
cacheMediaWidth={this.props.cacheMediaWidth}
|
||||
withoutEmojiReactions={true}
|
||||
/>
|
||||
</div>
|
||||
</HotKeys>
|
||||
@ -221,7 +223,6 @@ class Notification extends ImmutablePureComponent {
|
||||
}
|
||||
|
||||
renderEmojiReaction (notification, link) {
|
||||
console.dir(notification)
|
||||
const { intl, unread } = this.props;
|
||||
const emoji_reaction = notification.get('emoji_reaction');
|
||||
|
||||
@ -248,6 +249,7 @@ class Notification extends ImmutablePureComponent {
|
||||
updateScrollBottom={this.props.updateScrollBottom}
|
||||
cachedMediaWidth={this.props.cachedMediaWidth}
|
||||
cacheMediaWidth={this.props.cacheMediaWidth}
|
||||
withoutEmojiReactions={true}
|
||||
/>
|
||||
</div>
|
||||
</HotKeys>
|
||||
@ -278,6 +280,7 @@ class Notification extends ImmutablePureComponent {
|
||||
updateScrollBottom={this.props.updateScrollBottom}
|
||||
cachedMediaWidth={this.props.cachedMediaWidth}
|
||||
cacheMediaWidth={this.props.cacheMediaWidth}
|
||||
withoutEmojiReactions={true}
|
||||
/>
|
||||
</div>
|
||||
</HotKeys>
|
||||
@ -313,6 +316,7 @@ class Notification extends ImmutablePureComponent {
|
||||
updateScrollBottom={this.props.updateScrollBottom}
|
||||
cachedMediaWidth={this.props.cachedMediaWidth}
|
||||
cacheMediaWidth={this.props.cacheMediaWidth}
|
||||
withoutEmojiReactions={true}
|
||||
/>
|
||||
</div>
|
||||
</HotKeys>
|
||||
@ -348,6 +352,7 @@ class Notification extends ImmutablePureComponent {
|
||||
updateScrollBottom={this.props.updateScrollBottom}
|
||||
cachedMediaWidth={this.props.cachedMediaWidth}
|
||||
cacheMediaWidth={this.props.cacheMediaWidth}
|
||||
withoutEmojiReactions={true}
|
||||
/>
|
||||
</div>
|
||||
</HotKeys>
|
||||
@ -389,6 +394,7 @@ class Notification extends ImmutablePureComponent {
|
||||
updateScrollBottom={this.props.updateScrollBottom}
|
||||
cachedMediaWidth={this.props.cachedMediaWidth}
|
||||
cacheMediaWidth={this.props.cacheMediaWidth}
|
||||
withoutEmojiReactions={true}
|
||||
/>
|
||||
</div>
|
||||
</HotKeys>
|
||||
|
@ -93,10 +93,9 @@ class REST::InstanceSerializer < ActiveModel::Serializer
|
||||
}
|
||||
end
|
||||
|
||||
<<<<<<< HEAD
|
||||
def feature_quote
|
||||
true
|
||||
=======
|
||||
end
|
||||
# for third party apps
|
||||
def fedibird_capabilities
|
||||
capabilities = [
|
||||
@ -106,7 +105,6 @@ class REST::InstanceSerializer < ActiveModel::Serializer
|
||||
capabilities << :profile_search unless Chewy.enabled?
|
||||
|
||||
capabilities
|
||||
>>>>>>> 5c5b42d42c (Fix third party app emoji reaction feature)
|
||||
end
|
||||
|
||||
private
|
||||
|
Loading…
Reference in New Issue
Block a user