ソースを参照

Merge pull request #730 from testwill/loop

chore: slice replace loop
main
Matt Baer 7ヶ月前
committed by GitHub
コミット
96eb800eaa
この署名に対応する既知のキーがデータベースに存在しません GPGキーID: 4AEE18F83AFDEB23
2個のファイルの変更3行の追加11行の削除
  1. +2
    -7
      activitypub.go
  2. +1
    -4
      db/create.go

+ 2
- 7
activitypub.go ファイルの表示

@@ -648,10 +648,7 @@ func deleteFederatedPost(app *App, p *PublicPost, collID int64) error {

for si, instFolls := range inboxes {
na.CC = []string{}
for _, f := range instFolls {
na.CC = append(na.CC, f)
}

na.CC = append(na.CC, instFolls...)
da := activitystreams.NewDeleteActivity(na)
// Make the ID unique to ensure it works in Pleroma
// See: https://git.pleroma.social/pleroma/pleroma/issues/1481
@@ -717,9 +714,7 @@ func federatePost(app *App, p *PublicPost, collID int64, isUpdate bool) error {
// add all followers from that instance
// to the CC field
na.CC = []string{}
for _, f := range instFolls {
na.CC = append(na.CC, f)
}
na.CC = append(na.CC, instFolls...)
// create a new "Create" activity
// with our article as object
if isUpdate {


+ 1
- 4
db/create.go ファイルの表示

@@ -247,10 +247,7 @@ func (b *CreateTableSqlBuilder) ToSQL() (string, error) {
}
things = append(things, columnStr)
}
for _, constraint := range b.Constraints {
things = append(things, constraint)
}

things = append(things, b.Constraints...)
if thingLen := len(things); thingLen > 0 {
str.WriteString(" ( ")
for i, thing := range things {


読み込み中…
キャンセル
保存