2021-12-14 18:32:47 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
declare(strict_types=1);
|
2019-08-07 19:53:59 +00:00
|
|
|
|
2023-01-10 22:44:09 +00:00
|
|
|
namespace Shimmie2;
|
|
|
|
|
2019-08-07 19:53:59 +00:00
|
|
|
class IndexInfo extends ExtensionInfo
|
|
|
|
{
|
|
|
|
public const KEY = "index";
|
|
|
|
|
2021-03-14 23:43:50 +00:00
|
|
|
public string $key = self::KEY;
|
|
|
|
public string $name = "Post List";
|
|
|
|
public string $url = self::SHIMMIE_URL;
|
|
|
|
public array $authors = self::SHISH_AUTHOR;
|
|
|
|
public string $license = self::LICENSE_GPLV2;
|
2024-02-10 19:42:28 +00:00
|
|
|
public ExtensionCategory $category = ExtensionCategory::FEATURE;
|
2021-03-14 23:43:50 +00:00
|
|
|
public string $description = "Show a list of uploaded posts";
|
|
|
|
public bool $core = true;
|
2022-10-28 00:45:35 +00:00
|
|
|
public ?string $documentation = " etc.
|
2019-11-02 20:19:09 +00:00
|
|
|
<p>Some search methods provided by extensions:
|
|
|
|
<ul>
|
|
|
|
<li>Numeric Score
|
|
|
|
<ul>
|
|
|
|
<li>score (=, <, >, <=, >=) number -- seach by score
|
|
|
|
<li>upvoted_by=Username -- search for a user's likes
|
|
|
|
<li>downvoted_by=Username -- search for a user's dislikes
|
|
|
|
<li>upvoted_by_id=UserID -- search for a user's likes by user ID
|
|
|
|
<li>downvoted_by_id=UserID -- search for a user's dislikes by user ID
|
2020-10-26 15:12:54 +00:00
|
|
|
<li>order=score_(ASC, DESC) -- find all posts sorted from by score
|
2019-11-02 20:19:09 +00:00
|
|
|
</ul>
|
2020-10-26 15:12:54 +00:00
|
|
|
<li>Post Rating
|
2019-11-02 20:19:09 +00:00
|
|
|
<ul>
|
2020-10-26 15:12:54 +00:00
|
|
|
<li>rating=se -- find safe and explicit posts, ignore questionable and unknown
|
2019-11-02 20:19:09 +00:00
|
|
|
</ul>
|
|
|
|
<li>Favorites
|
|
|
|
<ul>
|
2020-10-26 15:12:54 +00:00
|
|
|
<li>favorites (=, <, >, <=, >=) number -- search for posts favourited a certain number of times
|
2019-11-02 20:19:09 +00:00
|
|
|
<li>favourited_by=Username -- search for a user's choices by username
|
|
|
|
<li>favorited_by_userno=UserID -- search for a user's choice by userID
|
|
|
|
</ul>
|
|
|
|
<li>Notes
|
|
|
|
<ul>
|
2020-10-26 15:12:54 +00:00
|
|
|
<li>notes (=, <, >, <=, >=) number -- search by the number of notes a post has
|
|
|
|
<li>notes_by=Username -- search for posts containing notes created by username
|
|
|
|
<li>notes_by_userno=UserID -- search for posts containing notes created by userID
|
2019-11-02 20:19:09 +00:00
|
|
|
</ul>
|
|
|
|
<li>Artists
|
|
|
|
<ul>
|
2020-10-26 15:12:54 +00:00
|
|
|
<li>author=ArtistName -- search for posts by artist
|
2019-11-02 20:19:09 +00:00
|
|
|
</ul>
|
2020-10-26 15:12:54 +00:00
|
|
|
<li>Post Comments
|
2019-11-02 20:19:09 +00:00
|
|
|
<ul>
|
2020-10-26 15:12:54 +00:00
|
|
|
<li>comments (=, <, >, <=, >=) number -- search for posts by number of comments
|
|
|
|
<li>commented_by=Username -- search for posts containing user's comments by username
|
|
|
|
<li>commented_by_userno=UserID -- search for posts containing user's comments by userID
|
2019-11-02 20:19:09 +00:00
|
|
|
</ul>
|
|
|
|
<li>Pools
|
|
|
|
<ul>
|
2020-10-26 15:12:54 +00:00
|
|
|
<li>pool=(PoolID, any, none) -- search for posts in a pool by PoolID.
|
|
|
|
<li>pool_by_name=PoolName -- search for posts in a pool by PoolName. underscores are replaced with spaces
|
2019-11-02 20:19:09 +00:00
|
|
|
</ul>
|
|
|
|
<li>Post Relationships
|
|
|
|
<ul>
|
2020-10-26 15:12:54 +00:00
|
|
|
<li>parent=(parentID, any, none) -- search for posts by parentID / if they have, do not have a parent
|
|
|
|
<li>child=(any, none) -- search for posts which have, or do not have children
|
2019-11-02 20:19:09 +00:00
|
|
|
</ul>
|
|
|
|
</ul>
|
|
|
|
";
|
2019-08-07 19:53:59 +00:00
|
|
|
}
|