2022-11-30 19:38:45 +00:00
|
|
|
{
|
|
|
|
"projectId": "637fd5cf8d8e29057a86",
|
|
|
|
"projectName": "Mastodon Algorithm",
|
|
|
|
"functions": [
|
|
|
|
{
|
|
|
|
"$id": "servers",
|
|
|
|
"name": "servers",
|
|
|
|
"runtime": "php-8.0",
|
|
|
|
"path": "functions/servers",
|
|
|
|
"entrypoint": "src/index.php",
|
|
|
|
"ignore": [
|
|
|
|
"vendor"
|
|
|
|
],
|
|
|
|
"execute": [
|
|
|
|
"users/verified"
|
|
|
|
],
|
|
|
|
"events": [],
|
|
|
|
"schedule": "",
|
|
|
|
"timeout": 40
|
2022-11-30 21:11:29 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"$id": "crawler",
|
|
|
|
"name": "crawler",
|
|
|
|
"runtime": "php-8.0",
|
|
|
|
"path": "functions/crawler",
|
|
|
|
"entrypoint": "src/index.php",
|
|
|
|
"ignore": [
|
|
|
|
"vendor"
|
|
|
|
],
|
|
|
|
"execute": [
|
|
|
|
"users/verified"
|
|
|
|
],
|
|
|
|
"events": [],
|
2022-12-19 00:23:52 +00:00
|
|
|
"schedule": "*/5 * * * *",
|
2022-11-30 21:11:29 +00:00
|
|
|
"timeout": 15
|
2022-12-19 00:08:43 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"$id": "suggestions",
|
|
|
|
"name": "suggestions",
|
|
|
|
"runtime": "php-8.0",
|
|
|
|
"path": "functions/suggestions",
|
|
|
|
"entrypoint": "src/index.php",
|
|
|
|
"ignore": [
|
|
|
|
"vendor"
|
|
|
|
],
|
|
|
|
"execute": [],
|
|
|
|
"events": [],
|
2022-12-19 03:45:17 +00:00
|
|
|
"schedule": "*/1 * * * *",
|
2022-12-19 00:08:43 +00:00
|
|
|
"timeout": 15
|
2022-11-30 19:38:45 +00:00
|
|
|
}
|
2022-12-22 23:47:59 +00:00
|
|
|
],
|
|
|
|
"collections": [
|
|
|
|
{
|
|
|
|
"$id": "servers",
|
|
|
|
"$createdAt": "2022-11-28T00:15:46.337+00:00",
|
|
|
|
"$updatedAt": "2022-11-28T00:16:55.140+00:00",
|
|
|
|
"$permissions": [
|
|
|
|
"read(\"users\")"
|
|
|
|
],
|
|
|
|
"databaseId": "637fd77aae471453b595",
|
|
|
|
"name": "servers",
|
|
|
|
"enabled": true,
|
|
|
|
"documentSecurity": false,
|
|
|
|
"attributes": [
|
|
|
|
{
|
|
|
|
"key": "server_url",
|
|
|
|
"type": "string",
|
|
|
|
"status": "available",
|
|
|
|
"required": true,
|
|
|
|
"array": false,
|
|
|
|
"size": 1000,
|
|
|
|
"default": null
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"key": "client_id",
|
|
|
|
"type": "string",
|
|
|
|
"status": "available",
|
|
|
|
"required": true,
|
|
|
|
"array": false,
|
|
|
|
"size": 100,
|
|
|
|
"default": null
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"key": "client_secret",
|
|
|
|
"type": "string",
|
|
|
|
"status": "available",
|
|
|
|
"required": true,
|
|
|
|
"array": false,
|
|
|
|
"size": 100,
|
|
|
|
"default": null
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"key": "app_access_token",
|
|
|
|
"type": "string",
|
|
|
|
"status": "available",
|
|
|
|
"required": false,
|
|
|
|
"array": false,
|
|
|
|
"size": 100,
|
|
|
|
"default": null
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"indexes": [
|
|
|
|
{
|
|
|
|
"key": "server_url",
|
|
|
|
"type": "unique",
|
|
|
|
"status": "available",
|
|
|
|
"attributes": [
|
|
|
|
"server_url"
|
|
|
|
],
|
|
|
|
"orders": [
|
|
|
|
"DESC"
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"$id": "hashtags",
|
|
|
|
"$createdAt": "2022-11-30T20:47:50.076+00:00",
|
|
|
|
"$updatedAt": "2022-11-30T20:47:50.076+00:00",
|
|
|
|
"$permissions": [],
|
|
|
|
"databaseId": "637fd77aae471453b595",
|
|
|
|
"name": "hashtags",
|
|
|
|
"enabled": true,
|
|
|
|
"documentSecurity": false,
|
|
|
|
"attributes": [
|
|
|
|
{
|
|
|
|
"key": "user",
|
|
|
|
"type": "string",
|
|
|
|
"status": "available",
|
|
|
|
"required": true,
|
|
|
|
"array": false,
|
|
|
|
"size": 100,
|
|
|
|
"default": null
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"key": "hashtag",
|
|
|
|
"type": "string",
|
|
|
|
"status": "available",
|
|
|
|
"required": true,
|
|
|
|
"array": false,
|
|
|
|
"size": 500,
|
|
|
|
"default": null
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"key": "lastseen",
|
|
|
|
"type": "datetime",
|
|
|
|
"status": "available",
|
|
|
|
"required": true,
|
|
|
|
"array": false,
|
|
|
|
"format": "",
|
|
|
|
"default": null
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"key": "points",
|
|
|
|
"type": "integer",
|
|
|
|
"status": "available",
|
|
|
|
"required": true,
|
|
|
|
"array": false,
|
|
|
|
"min": 0,
|
|
|
|
"max": 9223372036854775807,
|
|
|
|
"default": null
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"indexes": [
|
|
|
|
{
|
|
|
|
"key": "user_id",
|
|
|
|
"type": "key",
|
|
|
|
"status": "available",
|
|
|
|
"attributes": [
|
|
|
|
"user"
|
|
|
|
],
|
|
|
|
"orders": [
|
|
|
|
"DESC"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"key": "hashtag",
|
|
|
|
"type": "key",
|
|
|
|
"status": "available",
|
|
|
|
"attributes": [
|
|
|
|
"hashtag"
|
|
|
|
],
|
|
|
|
"orders": [
|
|
|
|
"DESC"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"key": "getUsersHashtags",
|
|
|
|
"type": "key",
|
|
|
|
"status": "available",
|
|
|
|
"attributes": [
|
|
|
|
"user",
|
|
|
|
"hashtag"
|
|
|
|
],
|
|
|
|
"orders": [
|
|
|
|
"DESC",
|
|
|
|
"DESC"
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"$id": "index_history",
|
|
|
|
"$createdAt": "2022-11-30T21:05:31.728+00:00",
|
|
|
|
"$updatedAt": "2022-11-30T21:05:31.728+00:00",
|
|
|
|
"$permissions": [],
|
|
|
|
"databaseId": "637fd77aae471453b595",
|
|
|
|
"name": "index_history",
|
|
|
|
"enabled": true,
|
|
|
|
"documentSecurity": false,
|
|
|
|
"attributes": [
|
|
|
|
{
|
|
|
|
"key": "user_id",
|
|
|
|
"type": "string",
|
|
|
|
"status": "available",
|
|
|
|
"required": true,
|
|
|
|
"array": false,
|
|
|
|
"size": 100,
|
|
|
|
"default": null
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"key": "last_post_id",
|
|
|
|
"type": "string",
|
|
|
|
"status": "available",
|
|
|
|
"required": true,
|
|
|
|
"array": false,
|
|
|
|
"size": 300,
|
|
|
|
"default": null
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"key": "populating_new_index",
|
|
|
|
"type": "boolean",
|
|
|
|
"status": "available",
|
|
|
|
"required": false,
|
|
|
|
"array": false,
|
|
|
|
"default": true
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"key": "first_post_id",
|
|
|
|
"type": "string",
|
|
|
|
"status": "available",
|
|
|
|
"required": false,
|
|
|
|
"array": false,
|
|
|
|
"size": 500,
|
|
|
|
"default": null
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"key": "feed_name",
|
|
|
|
"type": "string",
|
|
|
|
"status": "available",
|
|
|
|
"required": true,
|
|
|
|
"array": false,
|
|
|
|
"elements": [
|
|
|
|
"home",
|
|
|
|
"favourites",
|
|
|
|
"bookmarks",
|
|
|
|
"local",
|
|
|
|
"federated",
|
|
|
|
"profile"
|
|
|
|
],
|
|
|
|
"format": "enum",
|
|
|
|
"default": null
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"indexes": [
|
|
|
|
{
|
|
|
|
"key": "queryIndexHistory",
|
|
|
|
"type": "key",
|
|
|
|
"status": "available",
|
|
|
|
"attributes": [
|
|
|
|
"user_id",
|
|
|
|
"feed_name"
|
|
|
|
],
|
|
|
|
"orders": [
|
|
|
|
"DESC",
|
|
|
|
"DESC"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"key": "unique",
|
|
|
|
"type": "unique",
|
|
|
|
"status": "available",
|
|
|
|
"attributes": [
|
|
|
|
"user_id",
|
|
|
|
"feed_name"
|
|
|
|
],
|
|
|
|
"orders": [
|
|
|
|
"DESC",
|
|
|
|
"DESC"
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"$id": "suggested",
|
|
|
|
"$createdAt": "2022-12-19T00:03:11.695+00:00",
|
|
|
|
"$updatedAt": "2022-12-19T23:18:53.402+00:00",
|
|
|
|
"$permissions": [],
|
|
|
|
"databaseId": "637fd77aae471453b595",
|
|
|
|
"name": "suggested",
|
|
|
|
"enabled": true,
|
|
|
|
"documentSecurity": true,
|
|
|
|
"attributes": [
|
|
|
|
{
|
|
|
|
"key": "post_link",
|
|
|
|
"type": "string",
|
|
|
|
"status": "available",
|
|
|
|
"required": true,
|
|
|
|
"array": false,
|
|
|
|
"size": 2000,
|
|
|
|
"default": null
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"key": "points",
|
|
|
|
"type": "integer",
|
|
|
|
"status": "available",
|
|
|
|
"required": true,
|
|
|
|
"array": false,
|
|
|
|
"min": 0,
|
|
|
|
"max": 9223372036854775807,
|
|
|
|
"default": null
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"key": "user_id",
|
|
|
|
"type": "string",
|
|
|
|
"status": "available",
|
|
|
|
"required": true,
|
|
|
|
"array": false,
|
|
|
|
"size": 100,
|
|
|
|
"default": null
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"key": "local_link",
|
|
|
|
"type": "string",
|
|
|
|
"status": "available",
|
|
|
|
"required": false,
|
|
|
|
"array": false,
|
|
|
|
"size": 2000,
|
|
|
|
"default": null
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"indexes": [
|
|
|
|
{
|
|
|
|
"key": "point_sort",
|
|
|
|
"type": "key",
|
|
|
|
"status": "available",
|
|
|
|
"attributes": [
|
|
|
|
"points",
|
|
|
|
"user_id"
|
|
|
|
],
|
|
|
|
"orders": [
|
|
|
|
"DESC",
|
|
|
|
"DESC"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"key": "points",
|
|
|
|
"type": "key",
|
|
|
|
"status": "available",
|
|
|
|
"attributes": [
|
|
|
|
"points"
|
|
|
|
],
|
|
|
|
"orders": [
|
|
|
|
"DESC"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"key": "link_unique",
|
|
|
|
"type": "unique",
|
|
|
|
"status": "failed",
|
|
|
|
"attributes": [
|
|
|
|
"post_link"
|
|
|
|
],
|
|
|
|
"orders": [
|
|
|
|
"DESC"
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
2022-11-30 19:38:45 +00:00
|
|
|
]
|
|
|
|
}
|