3meters / proxibase

Patchr web service
1 stars 0 forks source link

First non-share message has linked patch but the rest of the non-shares do not #430

Closed Jaymassena closed 8 years ago

Jaymassena commented 8 years ago

https://api.aircandi.com/v1/find/users/us.000000.00000.000.000001

{
  "user": "us.000000.00000.000.000001",
  "linked": {
    "linkCount": [
      {
        "from": "users",
        "type": "like"
      }
    ],
    "links": [
      {
        "fields": "_id,type,schema",
        "from": "users",
        "filter": {
          "_from": "us.000000.00000.000.000001"
        },
        "type": "like"
      }
    ],
    "refs": {
      "_owner": "_id,name,photo,schema,type"
    },
    "to": "messages",
    "skip": 0,
    "type": "create",
    "linked": [
      {
        "fields": "_id,name,photo,schema,type",
        "type": "content",
        "to": "patches",
        "limit": 1
      },
      {
        "refs": {
          "_owner": "_id,name,photo,schema,type"
        },
        "type": "share",
        "to": "messages",
        "limit": 1
      },
      {
        "type": "share",
        "to": "patches",
        "limit": 1
      },
      {
        "type": "share",
        "to": "users",
        "limit": 5
      }
    ],
    "more": true,
    "limit": 20
  },
  "session": "206e35d846989f8589fc4df212b4290285318d70",
  "promote": "linked"
}
Response Headers
georgesnelling commented 8 years ago

Fixed pushed to production with 4.2.3.

Jaymassena commented 8 years ago

Confirmed this fix with the android client. Looks good!