fixup! Add the ability to change to a new circle by replying to a circle

This commit is contained in:
noellabo 2021-07-17 11:44:59 +09:00
parent a27fcf5e30
commit 96258f2a86
3 changed files with 6 additions and 7 deletions

View file

@ -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 (
@ -68,7 +68,6 @@ class Circles extends ImmutablePureComponent {
<ScrollableList
scrollKey='circles'
shouldUpdateScroll={shouldUpdateScroll}
emptyMessage={emptyMessage}
prepend={<ColumnSubheading text={intl.formatMessage(messages.subheading)} />}
bindToDocument={!multiColumn}

View file

@ -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,
@ -41,7 +40,7 @@ class Mentions extends ImmutablePureComponent {
}
render () {
const { shouldUpdateScroll, accountIds, multiColumn } = this.props;
const { accountIds, multiColumn } = this.props;
if (!accountIds) {
return (
@ -62,7 +61,6 @@ class Mentions extends ImmutablePureComponent {
<ScrollableList
scrollKey='mentions'
shouldUpdateScroll={shouldUpdateScroll}
emptyMessage={emptyMessage}
bindToDocument={!multiColumn}
>

View file

@ -360,8 +360,9 @@ class ActivityPub::Activity::Create < ActivityPub::Activity
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://')
@ -375,6 +376,7 @@ class ActivityPub::Activity::Create < ActivityPub::Activity
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']