GNU social JP
  • FAQ
  • Login
GNU social JPは日本のGNU socialサーバーです。
Usage/ToS/admin/test/Pleroma FE
  • Public

    • Public
    • Network
    • Groups
    • Featured
    • Popular
    • People

hypolite (hypolite@friendica.mrpetovan.com)'s status on Tuesday, 27-Dec-2022 07:31:31 JST

  1. Embed this notice
    hypolite (hypolite@friendica.mrpetovan.com)'s status on Tuesday, 27-Dec-2022 07:31:31 JST hypolite hypolite
    in reply to
    • heluecht
    @heluecht The status values are Entity constants, the dismiss() method is an Entity method (don't forget to call Repository->save() after!). I want to avoid get* and set* methods in the Entity classes. Just create methods for the use-cases we have. Do we dismiss reports? dismiss(). Do we reopen them if they were dismissed? reopen().

    Querying a list of reports based on conditions is in the Repository since it's interacting with the database. You can create a joined query, then use Factory->createFromTableRow to obtain Report entities, and you can use the rest of the row fields for what you want. Watch out for conflicting fields, the id field should always be the Entity ID.
    In conversation Tuesday, 27-Dec-2022 07:31:31 JST from gnusocial.jp permalink

Feeds

  • Activity Streams
  • Atom
  • Help
  • About
  • FAQ
  • TOS
  • Privacy
  • Source
  • Version
  • Contact

GNU social JP is a social network, courtesy of GNU social JP管理人. It runs on GNU social, version 2.0.2-dev, available under the GNU Affero General Public License.

Creative Commons Attribution 3.0 All GNU social JP content and data are available under the Creative Commons Attribution 3.0 license.