Skip to content

Commit

Permalink
fixup! Add the ability to change to a new circle by replying to a circle
Browse files Browse the repository at this point in the history
  • Loading branch information
noellabo committed Aug 19, 2021
1 parent 6e528cd commit 8588361
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
3 changes: 1 addition & 2 deletions app/javascript/mastodon/features/circles/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ class Circles extends ImmutablePureComponent {
}

render () {
const { intl, shouldUpdateScroll, circles, multiColumn } = this.props;
const { intl, circles, multiColumn } = this.props;

if (!circles) {
return (
Expand All @@ -68,7 +68,6 @@ class Circles extends ImmutablePureComponent {

<ScrollableList
scrollKey='circles'
shouldUpdateScroll={shouldUpdateScroll}
emptyMessage={emptyMessage}
prepend={<ColumnSubheading text={intl.formatMessage(messages.subheading)} />}
bindToDocument={!multiColumn}
Expand Down
4 changes: 1 addition & 3 deletions app/javascript/mastodon/features/mentions/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ class Mentions extends ImmutablePureComponent {
static propTypes = {
params: PropTypes.object.isRequired,
dispatch: PropTypes.func.isRequired,
shouldUpdateScroll: PropTypes.func,
accountIds: ImmutablePropTypes.list,
multiColumn: PropTypes.bool,
intl: PropTypes.object.isRequired,
Expand All @@ -41,7 +40,7 @@ class Mentions extends ImmutablePureComponent {
}

render () {
const { shouldUpdateScroll, accountIds, multiColumn } = this.props;
const { accountIds, multiColumn } = this.props;

if (!accountIds) {
return (
Expand All @@ -62,7 +61,6 @@ class Mentions extends ImmutablePureComponent {

<ScrollableList
scrollKey='mentions'
shouldUpdateScroll={shouldUpdateScroll}
emptyMessage={emptyMessage}
bindToDocument={!multiColumn}
>
Expand Down
6 changes: 4 additions & 2 deletions app/lib/activitypub/activity/create.rb
Original file line number Diff line number Diff line change
Expand Up @@ -360,8 +360,9 @@ def conversation_from_context

return conversation if @object['context'].nil?

uri = value_or_id(@object['context'])
conversation ||= ActivityPub::TagManager.instance.uri_to_resource(uri, Conversation)
uri = value_or_id(@object['context'])
context_conversation = ActivityPub::TagManager.instance.uri_to_resource(uri, Conversation)
conversation ||= context_conversation

return conversation if (conversation.present? && (conversation.local? || conversation.uri == uri)) || !uri.start_with?('https://')

Expand All @@ -375,6 +376,7 @@ def conversation_from_context

return conversation if conversation_json.blank?

conversation = context_conversation if context_conversation.present?
conversation ||= Conversation.new
conversation.uri = uri
conversation.inbox_url = conversation_json['inbox']
Expand Down

0 comments on commit 8588361

Please sign in to comment.