Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#119 Native Sublinks API #359

Open
wants to merge 131 commits into
base: main
Choose a base branch
from
Open

#119 Native Sublinks API #359

wants to merge 131 commits into from

Commits on Dec 22, 2023

  1. Configuration menu
    Copy the full SHA
    139ae2a View commit details
    Browse the repository at this point in the history

Commits on Apr 23, 2024

  1. Configuration menu
    Copy the full SHA
    8115338 View commit details
    Browse the repository at this point in the history

Commits on Apr 24, 2024

  1. Minor fix addition

    Pdzly committed Apr 24, 2024
    Configuration menu
    Copy the full SHA
    9388d2a View commit details
    Browse the repository at this point in the history
  2. Added Personmapper

    and RoleMapper
    Pdzly committed Apr 24, 2024
    Configuration menu
    Copy the full SHA
    d340421 View commit details
    Browse the repository at this point in the history

Commits on Apr 25, 2024

  1. Remove unnecessary blank line in PersonMapper

    This commit removes an unnecessary blank line in the PersonMapper class. The removal cleans up the code and improves its readability. This change adheres to the defined code style guide.
    Pdzly committed Apr 25, 2024
    Configuration menu
    Copy the full SHA
    c29a96b View commit details
    Browse the repository at this point in the history

Commits on Apr 26, 2024

  1. Merge branch 'refs/heads/feature/353-swap-to-postgres' into issue/119…

    …-native-api
    
    # Conflicts:
    #	src/main/java/com/sublinks/sublinksapi/api/lemmy/v3/site/controllers/SiteController.java
    Pdzly committed Apr 26, 2024
    Configuration menu
    Copy the full SHA
    e922f0e View commit details
    Browse the repository at this point in the history

Commits on Apr 29, 2024

  1. Refactor PersonService, implement JWT auth and person registration

    The code refactor involved updating PersonService's relevant methods and adjusting their arguments and properties. Alongside this, JSON Web Token (JWT) authentication has been implemented to secure APIs. A new process for person registration has also been introduced, which now includes email verification and handling different registration modes. New components such as JwtFilter, JwtUtil and JwtPerson have been included for managing JWTs, and a new timeline endpoint for default controller is also introduced.
    Pdzly committed Apr 29, 2024
    Configuration menu
    Copy the full SHA
    523d863 View commit details
    Browse the repository at this point in the history

Commits on May 2, 2024

  1. Refactor codebase to switch primitive boolean to Boolean and expand A…

    …PI functionality
    
    Made changes throughout the project by replacing primitive boolean with its Wrapper class, Boolean. This allows for null values, which can represent 'undefined' status. In addition, introduced new community-related endpoints and services, for enhanced community details management. Also, new SortType and ListingType enumerations were added, to enrich the sorting and listing options. Implemented relevant conversions and mapping for new types.
    Pdzly committed May 2, 2024
    Configuration menu
    Copy the full SHA
    adab151 View commit details
    Browse the repository at this point in the history
  2. Fixed a bug

    Pdzly committed May 2, 2024
    Configuration menu
    Copy the full SHA
    6384aba View commit details
    Browse the repository at this point in the history
  3. Fixed a bug

    Pdzly committed May 2, 2024
    Configuration menu
    Copy the full SHA
    93f62f0 View commit details
    Browse the repository at this point in the history
  4. Add find methods in repositories and enhance community service

    Added method to find Instance by domain in the InstanceRepository and find methods for Community in the CommunityRepository. Enhanced SublinksCommunityService to handle community updates, deletion and removal, and validate unique titleSlugs upon creation. Also introduced ActorIdUtils for handling actorIDs.
    Pdzly committed May 2, 2024
    Configuration menu
    Copy the full SHA
    6034093 View commit details
    Browse the repository at this point in the history

Commits on May 4, 2024

  1. Implement comment service logic and enhance authorization

    Added SublinksCommentService for handling comment creation with proper validations and exception handling. Adjusted RoleAuthorizingService by introducing helper methods to check a person's permission status. Updated CommunityModActionsController with refined exception handling logic. Added necessary find methods in PostRepository and CommentRepository. Introduced new model classes for comments.
    Pdzly committed May 4, 2024
    Configuration menu
    Copy the full SHA
    364454a View commit details
    Browse the repository at this point in the history
  2. Refactor to use Optional in CommunityRepository methods

    CommunityRepository has been refactored to use Optional for the return type of findCommunityByTitleSlug method to better handle absence of value situations. Additionally, logic has been added in createCommunity and updateCommunity methods to check user permissions for these operations. The updateCommunity method has also been simplified for better readability and efficiency.
    Pdzly committed May 4, 2024
    Configuration menu
    Copy the full SHA
    7945a0a View commit details
    Browse the repository at this point in the history

Commits on May 5, 2024

  1. Refactor authentication and add language support to comments

    This commit renames classes related to JWT authentication for coherence and better readability. It also includes a new column in the Language entity to handle language codes. Furthermore, a validation has been added to check language availability while creating comments. Minor syntax changes are also performed to improve readability and comply with updated editor settings. This refactoring ensures better code organization and enhances functionality by accepting comments in different languages.
    Pdzly committed May 5, 2024
    Configuration menu
    Copy the full SHA
    842ce8d View commit details
    Browse the repository at this point in the history
  2. Merge branch 'refs/heads/main' into issue/119-native-api

    # Conflicts:
    #	src/main/java/com/sublinks/sublinksapi/api/lemmy/v3/community/controllers/CommunityModActionsController.java
    #	src/main/java/com/sublinks/sublinksapi/api/lemmy/v3/community/controllers/CommunityOwnerController.java
    #	src/main/java/com/sublinks/sublinksapi/api/lemmy/v3/post/controllers/PostController.java
    #	src/main/java/com/sublinks/sublinksapi/api/lemmy/v3/user/controllers/UserAuthController.java
    #	src/main/java/com/sublinks/sublinksapi/authorization/services/RoleAuthorizingService.java
    #	src/main/java/com/sublinks/sublinksapi/person/repositories/PersonRepository.java
    #	src/main/java/com/sublinks/sublinksapi/person/services/PersonService.java
    #	src/main/java/com/sublinks/sublinksapi/person/services/UserDataService.java
    Pdzly committed May 5, 2024
    Configuration menu
    Copy the full SHA
    a21b35b View commit details
    Browse the repository at this point in the history
  3. Refactor code for readability and consistency

    Removed irrelevant code block in PersonService and improved formatting across various methods in CommunityModActionsController and PostController to improve readability and maintain consistency. Arranged method calls and parameters to make the code cleaner and easier to understand.
    Pdzly committed May 5, 2024
    Configuration menu
    Copy the full SHA
    ce6b513 View commit details
    Browse the repository at this point in the history

Commits on May 6, 2024

  1. .

    Pdzly committed May 6, 2024
    Configuration menu
    Copy the full SHA
    123a928 View commit details
    Browse the repository at this point in the history
  2. Refactor authentication and update APIs

    The authentication config has been refactored and the APIs related to JWT filter, person, and community have been updated. The changes include filename changes, code reformatting, function renaming, and improved access control checks.
    Pdzly committed May 6, 2024
    Configuration menu
    Copy the full SHA
    0b8f6e2 View commit details
    Browse the repository at this point in the history

Commits on May 7, 2024

  1. Refactor controller classes and improve security

    This commit refactors several controller classes for better code organization and consistency. Classes were renamed, and the RestController annotation was added to each controller. Additionally, the implementation of JWT filter was updated to improve authentication security. Improvements to the build file were also made, adding additional dependencies.
    Pdzly committed May 7, 2024
    Configuration menu
    Copy the full SHA
    e2523b1 View commit details
    Browse the repository at this point in the history
  2. Renamed Enum 'ListingType' to 'SublinksListingType' and updated refer…

    …ences
    
    The enum 'ListingType' was renamed to 'SublinksListingType' to be more specific. All references in the code to the old 'ListingType' has been updated to 'SublinksListingType'. Additionally, the boolean 'showNsfw' in IndexCommunity class was updated to not use Optional.
    Pdzly committed May 7, 2024
    Configuration menu
    Copy the full SHA
    ac83973 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    505d895 View commit details
    Browse the repository at this point in the history

Commits on May 8, 2024

  1. Configuration menu
    Copy the full SHA
    9b91168 View commit details
    Browse the repository at this point in the history
  2. Fixed some more

    Pdzly committed May 8, 2024
    Configuration menu
    Copy the full SHA
    2566d31 View commit details
    Browse the repository at this point in the history
  3. Add CommunityView and CommunityAggregates models

    New models, CommunityView and CommunityAggregates, were introduced to provide comprehensive information about communities. The SublinksCommunityController was also updated to use these models, thereby improving the details provided when fetching a community or list of communities.
    Pdzly committed May 8, 2024
    Configuration menu
    Copy the full SHA
    0d47e47 View commit details
    Browse the repository at this point in the history
  4. Fixed a hickup

    Pdzly committed May 8, 2024
    Configuration menu
    Copy the full SHA
    05a030b View commit details
    Browse the repository at this point in the history
  5. Renamed some attributes

    Pdzly committed May 8, 2024
    Configuration menu
    Copy the full SHA
    a76268e View commit details
    Browse the repository at this point in the history
  6. Renamed some attributes

    Pdzly committed May 8, 2024
    Configuration menu
    Copy the full SHA
    171f0b7 View commit details
    Browse the repository at this point in the history

Commits on May 10, 2024

  1. Revert "Renamed some attributes"

    This reverts commit a76268e
    Pdzly committed May 10, 2024
    Configuration menu
    Copy the full SHA
    95a7861 View commit details
    Browse the repository at this point in the history
  2. Revert "Fixed a hickup"

    This reverts commit 05a030b.
    Pdzly committed May 10, 2024
    Configuration menu
    Copy the full SHA
    94d7372 View commit details
    Browse the repository at this point in the history
  3. Revert "Add CommunityView and CommunityAggregates models"

    This reverts commit 0d47e47.
    Pdzly committed May 10, 2024
    Configuration menu
    Copy the full SHA
    a15c903 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    fb87d98 View commit details
    Browse the repository at this point in the history

Commits on May 11, 2024

  1. Revert "Renamed some attributes"

    This reverts commit 171f0b7.
    Pdzly committed May 11, 2024
    Configuration menu
    Copy the full SHA
    9a5e686 View commit details
    Browse the repository at this point in the history
  2. Revert "Renamed some attributes"

    This reverts commit a76268e.
    Pdzly committed May 11, 2024
    Configuration menu
    Copy the full SHA
    bddbff7 View commit details
    Browse the repository at this point in the history
  3. Revert "Fixed a hickup"

    This reverts commit 05a030b.
    Pdzly committed May 11, 2024
    Configuration menu
    Copy the full SHA
    904475b View commit details
    Browse the repository at this point in the history
  4. Revert "Add CommunityView and CommunityAggregates models"

    This reverts commit 0d47e47.
    Pdzly committed May 11, 2024
    Configuration menu
    Copy the full SHA
    ae145c4 View commit details
    Browse the repository at this point in the history
  5. Renamed some attributes

    Pdzly committed May 11, 2024
    Configuration menu
    Copy the full SHA
    19a10ec View commit details
    Browse the repository at this point in the history
  6. Add community moderation features

    Designed and implemented moderation functionalities in the Sublinks community. This includes obtaining community moderators, adding and deleting moderators, and the capacity to ban users. Fixed the API paths for some services and introduced new types and mapper classes to align with the new moderation features.
    Pdzly committed May 11, 2024
    Configuration menu
    Copy the full SHA
    92b6f1c View commit details
    Browse the repository at this point in the history

Commits on May 12, 2024

  1. Configuration menu
    Copy the full SHA
    9288a10 View commit details
    Browse the repository at this point in the history

Commits on May 13, 2024

  1. Implement user ban and unban functionality

    The commit introduces methods to ban and unban users from a community. To implement this change, a new import for PersonRepository was added to the SublinksCommunityService class. New endpoints for "ban" and "unban" were added to the SublinksCommunityModerationController. The findOneByName method in PersonRepository was replaced with findOneByNameIgnoreCase to ensure the case insensitivity of username in ban/unban requests. In addition, The LinkPersonCommunityService class was updated to handle the removal of any user link in case of banning.
    Pdzly committed May 13, 2024
    Configuration menu
    Copy the full SHA
    bc0c69f View commit details
    Browse the repository at this point in the history

Commits on May 17, 2024

  1. Add CRUD features for communities and initial post functionality

    In this update, several features were added to the community services including the ability to create, update, and retrieve communities. In addition, functionality to manage moderation including getting community moderators and banning/unbanning persons was introduced. Also introduced initial pieces for posting functionality with new models and mapping methods. Necessary documentation for these features was added in addition to minor formatting changes.
    Pdzly committed May 17, 2024
    Configuration menu
    Copy the full SHA
    99d0a69 View commit details
    Browse the repository at this point in the history

Commits on May 19, 2024

  1. Refactor UserController to improve person update logic

    This commit breaks down the original combined setters and condition checks in UserController when updating the Person object. This makes the code more readable and ensures that each field is properly checked before assignment. The code is now more maintainable, as each operation is clearly isolated.
    Pdzly committed May 19, 2024
    Configuration menu
    Copy the full SHA
    4b873d1 View commit details
    Browse the repository at this point in the history
  2. Update comment controller to return a list of responses

    The change have been made in the SublinksCommentController class, specifically in the index method, to return a list of CommentResponse objects instead of a single object. This is a more efficient way to handle multiple comments.
    Pdzly committed May 19, 2024
    Configuration menu
    Copy the full SHA
    800de62 View commit details
    Browse the repository at this point in the history
  3. Enhance comment and community features

    The commit adds the ability to view, create and edit comments. Updates were made to the community service to provide functionality for retrieving a list of communities based on certain criteria, creating a comment, and updating comments. The addition of authorization checks was also made in several places to ensure only authorized users can perform certain operations. Additionally, functionalities were created to interact with community moderators and community aggregation.
    Pdzly committed May 19, 2024
    Configuration menu
    Copy the full SHA
    f467971 View commit details
    Browse the repository at this point in the history

Commits on May 21, 2024

  1. Enhance ban logic and add community remove feature

    This commit significantly enhances the ban logic and introduces the community remove feature in the community moderation functionality. Specifically, the ban logic has been updated to allow both banning and unbanning of users. The commit adds a remove method that enables moderators to remove communities based on roles and permissions for both admin and moderator roles have been updated accordingly. As part of this enhancement, several record models related to community moderation have been updated or created.
    Pdzly committed May 21, 2024
    Configuration menu
    Copy the full SHA
    24b5209 View commit details
    Browse the repository at this point in the history
  2. Enhance ban logic and add community remove feature

    This commit significantly enhances the ban logic and introduces the community remove feature in the community moderation functionality. Specifically, the ban logic has been updated to allow both banning and unbanning of users. The commit adds a remove method that enables moderators to remove communities based on roles and permissions for both admin and moderator roles have been updated accordingly. As part of this enhancement, several record models related to community moderation have been updated or created.
    Pdzly committed May 21, 2024
    Configuration menu
    Copy the full SHA
    9e01c0b View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    e3d7037 View commit details
    Browse the repository at this point in the history

Commits on May 22, 2024

  1. Merge branch 'main' into issue/119-native-api

    Signed-off-by: Pdzly <[email protected]>
    Pdzly authored May 22, 2024
    Configuration menu
    Copy the full SHA
    f894d1f View commit details
    Browse the repository at this point in the history

Commits on May 23, 2024

  1. Add community and comment moderation features

    Introduced delete and remove functionality to both community and comment sections of the platform. Changed tag names in community controllers for better clarity. Updated Community and Comment services to support new moderation features. Also, made minor adjustments to PostMapper and RolePermissionCommentTypes for better code organization.
    Pdzly committed May 23, 2024
    Configuration menu
    Copy the full SHA
    5bbf85a View commit details
    Browse the repository at this point in the history

Commits on May 25, 2024

  1. Configuration menu
    Copy the full SHA
    dd612d5 View commit details
    Browse the repository at this point in the history
  2. Add comment pinning feature and refactor HTTP methods

    The commit includes the implementation of a new comment pinning feature in the comment service and controller, which will allow moderators to pin and unpin comments. It also includes changes in HTTP methods from 'GET' to 'POST' in several places to align with REST best practices for methods that change the state of the data. Some formatting adjustments for improve code readability are also included.
    
    Signed-off-by: rooki <[email protected]>
    Pdzly committed May 25, 2024
    Configuration menu
    Copy the full SHA
    430baa2 View commit details
    Browse the repository at this point in the history

Commits on May 26, 2024

  1. Add comment pinning functionality and refactor HTTP methods

    This commit introduces the ability for moderators to pin and unpin comments through the new functionality in the comment service and controller. It also replaces several 'GET' HTTP methods with 'POST' for compliance with REST standards on state-changing operations. Additionally, some code formatting was adjusted for better readability.
    
    Signed-off-by: rooki <[email protected]>
    Pdzly committed May 26, 2024
    Configuration menu
    Copy the full SHA
    815c3f0 View commit details
    Browse the repository at this point in the history

Commits on May 28, 2024

  1. Refactor application and extend functionality

    This commit updates and enhances the application in multiple ways. It includes refactoring classes that have been moved to more appropriate packages and renaming some of them for better understanding. Furthermore, new functionalities have been introduced such as implementing a service to ban a user and a service to retrieve a list of banned users. The code also contains improved error handling and minor modifications for improving code quality.
    
    Signed-off-by: rooki <[email protected]>
    Pdzly committed May 28, 2024
    Configuration menu
    Copy the full SHA
    290cb35 View commit details
    Browse the repository at this point in the history
  2. Merge branch 'main' into issue/119-native-api

    Signed-off-by: Rooki <[email protected]>
    Pdzly authored May 28, 2024
    Configuration menu
    Copy the full SHA
    4a5a936 View commit details
    Browse the repository at this point in the history
  3. Refactor PersonAggregationController and add Auth checks

    Changes have been made to refactor the `SublinksPersonAggregationController`. The controller now makes use of the `PersonAggregateResponse` and `PersonIdentity` models. In addition, authentication checks have been added to ensure a user has the correct permissions before accessing certain data.
    
    Signed-off-by: rooki <[email protected]>
    Pdzly committed May 28, 2024
    Configuration menu
    Copy the full SHA
    529971e View commit details
    Browse the repository at this point in the history
  4. Enhanced authorization checks and response models

    The commit introduced more detailed authorization checks in various parts of the application. It further enriched the response models for better client-side readability. Moreover, annotation responses have been updated in multiple controllers to improve the OpenAPI documentation.
    
    Signed-off-by: rooki <[email protected]>
    Pdzly committed May 28, 2024
    Configuration menu
    Copy the full SHA
    c6f3615 View commit details
    Browse the repository at this point in the history

Commits on May 30, 2024

  1. Add search functionality for instances and enhance APIs

    Introduced search functionality in the Instance Repository to retrieve instances based on domain or description. Enhanced various controllers for better data handling and error management. Updated the InstanceConfig and Person Repositories for increased efficiency. Enhanced the application's mapping capabilities by introducing a new SublinksInstanceMapper. Added RegistrationMode and ListingType enums for better data management in instances.
    
    Signed-off-by: rooki <[email protected]>
    Pdzly committed May 30, 2024
    Configuration menu
    Copy the full SHA
    b4fe7c4 View commit details
    Browse the repository at this point in the history
  2. LINT

    Signed-off-by: rooki <[email protected]>
    Pdzly committed May 30, 2024
    Configuration menu
    Copy the full SHA
    6fdc7b3 View commit details
    Browse the repository at this point in the history

Commits on May 31, 2024

  1. Extend Search API to support communities, posts, and comments

    In this update, the Search API has been expanded to include not only person-related responses but also community, post, and comment responses. A new service, SublinksSearchService, has been added, along with several model updates to support these features. Additionally, code adjustments have been made to adapt the parameter renaming of 'limit' to 'perPage'.
    
    Signed-off-by: rooki <[email protected]>
    Pdzly committed May 31, 2024
    Configuration menu
    Copy the full SHA
    1885ed3 View commit details
    Browse the repository at this point in the history

Commits on Jun 1, 2024

  1. Refactor code structure and add search functionality

    Code has been refactored for better readability and new methods have been added to the Builder class in PostSearchQueryService.java for filtering NSFW posts and to perform a search. Improvements to code structuring have been made across multiple files to enhance readability. Additionally, search functionality parameters have been added to the IndexCommunity.java file.
    
    Signed-off-by: rooki <[email protected]>
    Pdzly committed Jun 1, 2024
    Configuration menu
    Copy the full SHA
    b67c2d8 View commit details
    Browse the repository at this point in the history

Commits on Jun 2, 2024

  1. Optimize search functionality and improve code structure

    Refactored code for increased readability, and added new methods for NSFW post filtering and search functionality in PostSearchQueryService.java. Enhanced overall code structuring across various files, and incorporated search function parameters within IndexCommunity.java.
    
    Signed-off-by: rooki <[email protected]>
    Pdzly committed Jun 2, 2024
    Configuration menu
    Copy the full SHA
    cf8726a View commit details
    Browse the repository at this point in the history

Commits on Jun 3, 2024

  1. Refactor PostReport and PostLike repositories

    This commit refactors the PostReportRepositoryImpl and PostLikeRepositoryImpl classes, aiming to improve the code readability and maintainability. Changes include updating the method argument structure, introducing the use of the applyPagination utility function to manage pagination in queries, and reformatting the code for increased readability.
    
    Signed-off-by: rooki <[email protected]>
    Pdzly committed Jun 3, 2024
    Configuration menu
    Copy the full SHA
    ac6a1dd View commit details
    Browse the repository at this point in the history
  2. Add show and create methods to SublinksPostService

    Several new methods and imports have been added to the SublinksPostService. The `show` method allows to find and display a specific post based on a key and a person, performing various checks to ensure post visibility. The `create` method executes complex functionality to create a new post. Furthermore, CreatePost model has also been updated with new parameters to support these changes.
    
    Signed-off-by: rooki <[email protected]>
    Pdzly committed Jun 3, 2024
    Configuration menu
    Copy the full SHA
    1ee4353 View commit details
    Browse the repository at this point in the history
  3. Merge branch 'refs/heads/main' into issue/119-native-api

    # Conflicts:
    #	src/main/java/com/sublinks/sublinksapi/api/lemmy/v3/post/controllers/PostController.java
    #	src/main/java/com/sublinks/sublinksapi/api/lemmy/v3/user/controllers/UserController.java
    #	src/main/java/com/sublinks/sublinksapi/authorization/services/InitialRoleSetupService.java
    #	src/main/java/com/sublinks/sublinksapi/comment/repositories/CommentRepository.java
    #	src/main/java/com/sublinks/sublinksapi/post/repositories/PostRepositoryImpl.java
    #	src/main/java/com/sublinks/sublinksapi/post/services/PostSearchQueryService.java
    Pdzly committed Jun 3, 2024
    Configuration menu
    Copy the full SHA
    74f00e8 View commit details
    Browse the repository at this point in the history
  4. Enhance Post functionalities with language support and slur filter

    This commit includes enhancements to the 'Post' object. Language restrictions are added, checks whether the post language is supported by the community or instance are implemented. A Slur filter has been integrated to handle exception scenarios and it can censor text in post bodies. Additionally, metadata from the linked website, if a link is provided in the post, is fetched and stored.
    
    Signed-off-by: rooki <[email protected]>
    Pdzly committed Jun 3, 2024
    Configuration menu
    Copy the full SHA
    3ddde7b View commit details
    Browse the repository at this point in the history

Commits on Jun 6, 2024

  1. Implement comment aggregate API and extend post functionalities

    This update introduces the comment aggregate API, providing insights on aggregate data like upvotes, downvotes, hot rank and reply count per comment. Furthermore, it broadens the post functionalities by introducing language restrictions and enforcing to check if the chosen language is supported by the respective community or instance. The slur filter integration helps in text censorship within post bodies, and links within posts now have metadata fetching and storing ability.
    
    Signed-off-by: rooki <[email protected]>
    Pdzly committed Jun 6, 2024
    Configuration menu
    Copy the full SHA
    58b825a View commit details
    Browse the repository at this point in the history

Commits on Jun 7, 2024

  1. Implement comment aggregate API and extend post functionalities

    This update introduces the comment aggregate API, providing insights on aggregate data like upvotes, downvotes, hot rank and reply count per comment. Furthermore, it broadens the post functionalities by introducing language restrictions and enforcing to check if the chosen language is supported by the respective community or instance. The slur filter integration helps in text censorship within post bodies, and links within posts now have metadata fetching and storing ability.
    
    Signed-off-by: rooki <[email protected]>
    Pdzly committed Jun 7, 2024
    Configuration menu
    Copy the full SHA
    f37650b View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    c450e00 View commit details
    Browse the repository at this point in the history

Commits on Jun 9, 2024

  1. Remove unnecessary comment from SQL migration script

    The diff shows a particular comment section being removed from a SQL migration script. The comment is no longer relevant or necessary, thereby enhancing the clarity and readability of the code.
    
    Signed-off-by: rooki <[email protected]>
    Pdzly committed Jun 9, 2024
    Configuration menu
    Copy the full SHA
    dbf7b5d View commit details
    Browse the repository at this point in the history

Commits on Jun 10, 2024

  1. Merge branch 'refs/heads/main' into issue/119-native-api

    # Conflicts:
    #	src/main/java/com/sublinks/sublinksapi/comment/models/CommentSearchCriteria.java
    Pdzly committed Jun 10, 2024
    Configuration menu
    Copy the full SHA
    5a5ec06 View commit details
    Browse the repository at this point in the history

Commits on Jun 16, 2024

  1. Add announcement functionality to Sublinks API

    This update added announcement handling functionality to Sublinks API. It includes creation of new model classes, updating service layers with query methods, and CRUD operations in the controller. It also added local people filtering to the `SublinksPersonService`.
    
    Signed-off-by: rooki <[email protected]>
    Pdzly committed Jun 16, 2024
    Configuration menu
    Copy the full SHA
    dec9b68 View commit details
    Browse the repository at this point in the history

Commits on Jun 17, 2024

  1. Add CRUD operations and models for announcements

    The commit introduces full CRUD functionality for announcements in the Sublinks API. It includes creation of new Announcement models with related update and removal forms. Implementation includes service updates, repository additions, and corresponding changes in the Announcement Controller.
    
    Signed-off-by: rooki <[email protected]>
    Pdzly committed Jun 17, 2024
    Configuration menu
    Copy the full SHA
    6977dff View commit details
    Browse the repository at this point in the history

Commits on Jun 24, 2024

  1. Add 'active' status and 'creator' field to announcements

    Added an 'active' status field to announcements, allowing for them to be toggled on and off. The 'creator' field was also added to link announcements to the user who created them. Renamed a comment mapper class, added a few new mapper classes and adjusted controller methods to accommodate these changes. Meanwhile, made adjustments to database queries and schemas to align with these updates.
    
    Signed-off-by: rooki <[email protected]>
    Pdzly committed Jun 24, 2024
    Configuration menu
    Copy the full SHA
    9f157db View commit details
    Browse the repository at this point in the history

Commits on Jun 25, 2024

  1. Refactor permissions checks in various services

    Moved permissions checks from controller to service layer to ensure better encapsulation. This change affects SublinksCommunityController, SublinksCommentAggregateController, and SublinksCommentModerationController. An ADMIN_UPDATE_COMMUNITY permission was also added in RolePermissionCommunityTypes. This improves code maintainability and readability.
    
    Signed-off-by: rooki <[email protected]>
    Pdzly committed Jun 25, 2024
    Configuration menu
    Copy the full SHA
    626ca5d View commit details
    Browse the repository at this point in the history

Commits on Jun 29, 2024

  1. Add functionality for handling user metadata

    Introduced new endpoints in the SublinksPersonSessionController to allow managing user metadata including getting, invalidating, and deleting metadata. Specific permissions have been added to govern these actions. Two new models, PersonSessionData and PersonSessionDataResponse, have been included to manage data transfer. Enhancements are made in services for consistent permission checks and handling new operations.
    
    Signed-off-by: rooki <[email protected]>
    Pdzly committed Jun 29, 2024
    Configuration menu
    Copy the full SHA
    46def33 View commit details
    Browse the repository at this point in the history
  2. Merge branch 'refs/heads/main' into issue/119-native-api

    # Conflicts:
    #	src/main/java/com/sublinks/sublinksapi/api/lemmy/v3/authentication/config/SecurityConfig.java
    Pdzly committed Jun 29, 2024
    Configuration menu
    Copy the full SHA
    47c53fa View commit details
    Browse the repository at this point in the history
  3. Refactor security configuration in SecurityConfig.java

    This commit simplifies the code in the SecurityConfig.java file for the security configuration of the Lemmy V3 API. It removes some duplication in the code related to session management and the authorization of HTTP requests, and changes the order of the `addFilterBefore` method to execute after session management.
    
    Signed-off-by: rooki <[email protected]>
    Pdzly committed Jun 29, 2024
    Configuration menu
    Copy the full SHA
    9a0a7eb View commit details
    Browse the repository at this point in the history
  4. Rearrange JWT filter addition in SecurityConfig

    The JWT filter addition is rearranged in the SecurityConfig. Previously, it was added before configuring CSRF, securityMatcher, authorization, and sessionManagement. Now, it is added after configuring all these. This change ensures that the JWT filter gets executed at the correct point in the filter chain.
    
    Signed-off-by: rooki <[email protected]>
    Pdzly committed Jun 29, 2024
    Configuration menu
    Copy the full SHA
    bd0ebc1 View commit details
    Browse the repository at this point in the history

Commits on Jun 30, 2024

  1. Refactor SublinksPersonMetaDataMapper class

    The commit removes unused methods and imports from the SublinksPersonMetaDataMapper class. The 'updatedAt' mapping source has also been changed from 'metadata.updatedAt' to 'metadata.lastUsedAt'. Besides, the 'mapPersonKey' method and associated Person import have been removed since they are no longer being used.
    
    Signed-off-by: rooki <[email protected]>
    Pdzly committed Jun 30, 2024
    Configuration menu
    Copy the full SHA
    e99b145 View commit details
    Browse the repository at this point in the history
  2. Refactor code and enhance User Data Management capabilities

    Significant improvements have been added to the management of user data and user sessions. The changes include the correction of certain URL Utilities, updates to the pagination functionalities, and enhancements to the handling of user metadata and validation mechanisms. Additionally, there are changes to the roles functionality, focusing on improving permissions handling, and also improvements on the structure of the API responses, and creation of essential utilities for person key handling.
    
    Signed-off-by: rooki <[email protected]>
    Pdzly committed Jun 30, 2024
    Configuration menu
    Copy the full SHA
    d550b84 View commit details
    Browse the repository at this point in the history
  3. Refactor UserDataService to simplify metadata updates

    The UserDataService has been refactored for simpler active user data retrieval and updating. The fetching process has been simplified by removing the need to fetch data using person and IP address together. Also, the metadata update procedure has been improved; it no longer needs to instantiate a new metadata every time there's a change, but instead, modifies the existing metadata instance.
    
    Signed-off-by: rooki <[email protected]>
    Pdzly committed Jun 30, 2024
    Configuration menu
    Copy the full SHA
    2ae010c View commit details
    Browse the repository at this point in the history

Commits on Jul 2, 2024

  1. Reorder import statements in UserDataService

    The import statements in the UserDataService class have been reordered. This change improves readability and adheres to code style guidelines. No functional changes have been made to the code.
    
    Signed-off-by: rooki <[email protected]>
    Pdzly committed Jul 2, 2024
    Configuration menu
    Copy the full SHA
    67b75a7 View commit details
    Browse the repository at this point in the history

Commits on Jul 5, 2024

  1. Add authorization to instance config actions

    The methods for showing and updating instance configurations now require the user's identity. The server will throw unauthorized responses when requested by unauthorized people. Permission types for reading and updating instances were added to the RolePermissionInstanceTypes enumeration.
    
    Signed-off-by: rooki <[email protected]>
    Pdzly committed Jul 5, 2024
    Configuration menu
    Copy the full SHA
    abd18c6 View commit details
    Browse the repository at this point in the history

Commits on Jul 6, 2024

  1. Refactor moderation models and update relevant methods

    Renamed moderation models for consistency and clarity, and updated all relevant methods in service and controller classes accordingly. Two new models for Post moderation were added. Additionally, fixed logic in checking delete post permission in SublinksPostService.
    
    Signed-off-by: rooki <[email protected]>
    Pdzly committed Jul 6, 2024
    Configuration menu
    Copy the full SHA
    3769ed4 View commit details
    Browse the repository at this point in the history
  2. Add post aggregate functionality

    Renamed Aggregate model classes to unify nam
    
    Signed-off-by: rooki <[email protected]>
    Pdzly committed Jul 6, 2024
    Configuration menu
    Copy the full SHA
    b3be4a2 View commit details
    Browse the repository at this point in the history

Commits on Jul 7, 2024

  1. Update moderation actions from "remove" to "pin"

    The code alters several parts where a moderator could remove certain entities. The action has now been changed to pinning the entities instead. This includes changes in comments, posts, and community moderation. Additional adjustments have been made to ensure correct behaviour of the new pin functionality.
    
    Signed-off-by: rooki <[email protected]>
    Pdzly committed Jul 7, 2024
    Configuration menu
    Copy the full SHA
    68da5cb View commit details
    Browse the repository at this point in the history
  2. Add purge community operation and update delete action summary

    A new operation to purge a community was added to the Sublinks Community Moderation Controller. This operation, however, is still not implemented and will be completed in the future. The summary text for the delete operation in the Sublinks Community Controller was changed from 'Purge an community' to 'Delete a community'.
    
    Signed-off-by: rooki <[email protected]>
    Pdzly committed Jul 7, 2024
    Configuration menu
    Copy the full SHA
    4cf90cb View commit details
    Browse the repository at this point in the history

Commits on Jul 9, 2024

  1. Add post pinning, community pinning, and post purging methods

    New functionalities added to SublinksPostModerationController: pinning a post, pinning a post in a community, and purging a post. The implementation for purging a post is not complete yet, but will be in future iterations. Additionally, the description for the Post Moderation API is updated. Existing functionality in the SublinksPostService is adjusted to allow the "featured" status of a post to be toggled during the pinning process.
    
    Signed-off-by: rooki <[email protected]>
    Pdzly committed Jul 9, 2024
    Configuration menu
    Copy the full SHA
    9afff74 View commit details
    Browse the repository at this point in the history

Commits on Jul 15, 2024

  1. Update permissions and search functionalities in API

    Enhancements were made to various API functionalities, including the addition of Instance Search and revised Private Message features. An array of new dependencies and properties were defined for instances and private message search criteria. SearchScopes now encompass posts, comments, communities, and instances. The changes aim to improve the user's search experience across categories and streamline the process of private message handling.
    
    Signed-off-by: rooki <[email protected]>
    Pdzly committed Jul 15, 2024
    Configuration menu
    Copy the full SHA
    015d23e View commit details
    Browse the repository at this point in the history
  2. Remove "purge" functionality and cleanup controllers

    The "purge" functionality has been removed from the SublinksCommunityModerationController. Additionally, unneeded component and dependencies were removed from the SublinksCommunityController, and the constructor in SublinksPrivatemessageModeratorController was replaced with @AllArgsConstructor for brevity.
    
    Signed-off-by: rooki <[email protected]>
    Pdzly committed Jul 15, 2024
    Configuration menu
    Copy the full SHA
    230837a View commit details
    Browse the repository at this point in the history

Commits on Jul 16, 2024

  1. Change request mapping in SublinksPostAggregateController

    The request mapping for the SublinksPostAggregateController class has been updated. Previously, it was incorrectly mapped to "api/v1/comment/{key}/aggregate". It has been corrected to "api/v1/post/{key}/aggregate".
    
    Signed-off-by: rooki <[email protected]>
    Pdzly committed Jul 16, 2024
    Configuration menu
    Copy the full SHA
    0559f32 View commit details
    Browse the repository at this point in the history

Commits on Jul 29, 2024

  1. Merge branch 'refs/heads/main' into issue/119-native-api

    # Conflicts:
    #	src/main/java/com/sublinks/sublinksapi/api/lemmy/v3/authentication/config/SecurityConfig.java
    #	src/main/java/com/sublinks/sublinksapi/api/lemmy/v3/comment/controllers/CommentModActionsController.java
    #	src/main/java/com/sublinks/sublinksapi/api/lemmy/v3/community/controllers/CommunityOwnerController.java
    #	src/main/java/com/sublinks/sublinksapi/api/lemmy/v3/privatemessage/controllers/PrivateMessageController.java
    #	src/main/java/com/sublinks/sublinksapi/comment/repositories/CommentRepositoryImpl.java
    #	src/main/java/com/sublinks/sublinksapi/person/services/UserDataService.java
    #	src/main/resources/db/migration/V20231006__Create_foreign_key_references.sql
    Pdzly committed Jul 29, 2024
    Configuration menu
    Copy the full SHA
    7c55988 View commit details
    Browse the repository at this point in the history

Commits on Aug 2, 2024

  1. Enhance role management and authorization handling.

    Removed `Role` model and replaced it with new event-based role management. Introduced publishers and events for role creation, updates, and deletion, and updated controllers and mappers accordingly. Additionally, simplified authorization error messages for consistency.
    
    Signed-off-by: rooki <[email protected]>
    Pdzly committed Aug 2, 2024
    Configuration menu
    Copy the full SHA
    c4e12ed View commit details
    Browse the repository at this point in the history

Commits on Aug 4, 2024

  1. Update role management and ACL services for role expiration

    Modified SQL scripts to refine unique index for roles table. Updated the role service to handle expiration dates in role creation and updates. Introduced ACL checks in post-related services to enhance authorization, and adjusted controller methods to align with these changes.
    
    Signed-off-by: rooki <[email protected]>
    Pdzly committed Aug 4, 2024
    Configuration menu
    Copy the full SHA
    3a74604 View commit details
    Browse the repository at this point in the history
  2. Refactor RequestResponse imports and enhance RolesController

    Renamed RequestResponse.java to its appropriate package path to improve code organization. Additionally, updated RolesController to accept RequestBody and manage roles more effectively by adding implementations for person-based CRUD operations on roles.
    
    Signed-off-by: rooki <[email protected]>
    Pdzly committed Aug 4, 2024
    Configuration menu
    Copy the full SHA
    07c22d8 View commit details
    Browse the repository at this point in the history
  3. Merge branch 'refs/heads/main' into issue/119-native-api

    # Conflicts:
    #	src/main/java/com/sublinks/sublinksapi/api/lemmy/v3/community/controllers/CommunityModActionsController.java
    #	src/main/java/com/sublinks/sublinksapi/api/lemmy/v3/post/controllers/PostModActionsController.java
    #	src/main/java/com/sublinks/sublinksapi/api/lemmy/v3/user/services/LemmyPersonMentionService.java
    #	src/main/java/com/sublinks/sublinksapi/comment/repositories/CommentRepositoryImpl.java
    #	src/main/java/com/sublinks/sublinksapi/person/services/LinkPersonCommunityService.java
    #	src/main/java/com/sublinks/sublinksapi/person/services/LinkPersonPostService.java
    #	src/main/java/com/sublinks/sublinksapi/post/services/PostService.java
    Pdzly committed Aug 4, 2024
    Configuration menu
    Copy the full SHA
    b1fe484 View commit details
    Browse the repository at this point in the history

Commits on Aug 6, 2024

  1. Add inheritance support to roles and enhance role mapping.

    Added an "inherits_from" column to the acl_roles table with a foreign key reference. Updated role mapping services to handle inherited permissions and refactored related mappers and services to integrate with the updated role structure.
    
    Signed-off-by: rooki <[email protected]>
    Pdzly committed Aug 6, 2024
    Configuration menu
    Copy the full SHA
    341daf8 View commit details
    Browse the repository at this point in the history
  2. Enable Hikari pool suspension and update transactional annotations

    Added properties for Hikari connection pool suspension and PostgreSQL dialect to `application.properties`. Replaced `jakarta.transaction.Transactional` with `org.springframework.transaction.annotation.Transactional` and updated method implementations in `InitialRoleSetupService`.
    
    Signed-off-by: rooki <[email protected]>
    Pdzly committed Aug 6, 2024
    Configuration menu
    Copy the full SHA
    efb22c1 View commit details
    Browse the repository at this point in the history
  3. Refactor role saving to use saveAndFlush

    Changed repository calls to saveAndFlush for immediate persistence. Updated savePermissions method to return void and improved role initialization with empty permissions set. This change ensures that roles and permissions are persistently stored in the database immediately.
    
    Signed-off-by: rooki <[email protected]>
    Pdzly committed Aug 6, 2024
    Configuration menu
    Copy the full SHA
    ba4f7d0 View commit details
    Browse the repository at this point in the history

Commits on Aug 7, 2024

  1. Refactor role and permissions mapping for improved handling

    Simplify the SublinksRoleMapper by removing the injection of unused dependencies and use lambda expressions mapping permissions directly. Update InitialRoleSetupService to use appropriate transaction handling and entity merging for improved data consistency. Adjust Role and RolePermission entities to correctly manage relationships with cascade operations for easier maintenance of role-based permissions.
    
    Signed-off-by: rooki <[email protected]>
    Pdzly committed Aug 7, 2024
    Configuration menu
    Copy the full SHA
    89e2b8d View commit details
    Browse the repository at this point in the history

Commits on Aug 8, 2024

  1. Enhance mapper configurations and simplify role permission logic

    Added unmapped target policy to SublinksPersonMapper to ignore mapping issues. Removed unused import and simplified permission saving logic in InitialRoleSetupService. Refactored SublinksRoleMapper by removing dependency on RolePermissionService and added methods for mapping inherited permissions.
    
    Signed-off-by: rooki <[email protected]>
    Pdzly committed Aug 8, 2024
    Configuration menu
    Copy the full SHA
    c058838 View commit details
    Browse the repository at this point in the history
  2. Refactor role service pagination and formatting of controller methods

    Reorganized pagination logic in SublinksRoleService for better readability and consistency. Improved code formatting in AdminController by aligning opening braces for better style compliance and readability.
    
    Signed-off-by: rooki <[email protected]>
    Pdzly committed Aug 8, 2024
    Configuration menu
    Copy the full SHA
    d3be423 View commit details
    Browse the repository at this point in the history
  3. Add missing newline for better readability

    Added a newline between import statements in AdminController.java. This enhances code readability and conforms to standard formatting practices. No functional changes were made.
    
    Signed-off-by: rooki <[email protected]>
    Pdzly committed Aug 8, 2024
    Configuration menu
    Copy the full SHA
    f364f08 View commit details
    Browse the repository at this point in the history

Commits on Aug 9, 2024

  1. Add purge post functionality to moderation

    Implemented a new purge feature with corresponding service method and controller endpoint to handle requests. Added the PurgePost model to represent the request payload and updated ACL service to check permissions.
    
    Signed-off-by: rooki <[email protected]>
    Pdzly committed Aug 9, 2024
    Configuration menu
    Copy the full SHA
    9510654 View commit details
    Browse the repository at this point in the history
  2. Implement purge post placeholder in SublinksPostService

    Added a placeholder for the purge post functionality in SublinksPostService. This includes a TODO comment to mark where the implementation should occur and sets the response to indicate the feature is not yet implemented.
    
    Signed-off-by: rooki <[email protected]>
    Pdzly committed Aug 9, 2024
    Configuration menu
    Copy the full SHA
    eecb193 View commit details
    Browse the repository at this point in the history
  3. Refactor method parameter name in purge method

    Updated the parameter name from `removePostForm` to `purgePostForm` in the `purge` method for better consistency and clarity. This change improves code readability and maintains alignment with naming conventions used throughout the class.
    
    Signed-off-by: rooki <[email protected]>
    Pdzly committed Aug 9, 2024
    Configuration menu
    Copy the full SHA
    2625aae View commit details
    Browse the repository at this point in the history
  4. Add @nonnull annotations and comprehensive JavaDocs

    Enhanced the codebase with @nonnull annotations to prevent null values and added detailed JavaDocs for better method documentation. This improves code robustness and readability by clearly specifying non-null contract and providing usage guidelines for methods.
    
    Signed-off-by: rooki <[email protected]>
    Pdzly committed Aug 9, 2024
    Configuration menu
    Copy the full SHA
    4172499 View commit details
    Browse the repository at this point in the history
  5. Adjust pagination to start from the first page.

    Previously, the pagination could start at an invalid state due to using zero as the lower bound. This change ensures that pagination correctly starts at page 1 instead of 0.
    
    Signed-off-by: rooki <[email protected]>
    Pdzly committed Aug 9, 2024
    Configuration menu
    Copy the full SHA
    528cc2f View commit details
    Browse the repository at this point in the history
  6. Add SublinksCommentSortTypeMapper and refactor sort type logic

    Introduced SublinksCommentSortTypeMapper to map SortType to CommentSortType. Refactored SublinksCommentService for improved sortType and listingType handling, ensuring null checks and default value assignments. Removed redundant imports in the affected classes.
    
    Signed-off-by: rooki <[email protected]>
    Pdzly committed Aug 9, 2024
    Configuration menu
    Copy the full SHA
    42662ce View commit details
    Browse the repository at this point in the history

Commits on Aug 11, 2024

  1. Refactor comment entities and service methods

    Updated the Comment entity to have a nullable searchVector, modified service logic for saving comments, and added toBuilder for CommentResponse. Refactored SublinksRoleMapper usage and improved formatting consistency in service classes.
    
    Signed-off-by: rooki <[email protected]>
    Pdzly committed Aug 11, 2024
    Configuration menu
    Copy the full SHA
    a0c129d View commit details
    Browse the repository at this point in the history
  2. Remove replies field from CommentResponse model

    Removed the `replies` field and associated annotations from the `CommentResponse` model. Updated dependent mappers and services to reflect this change. This simplifies the comment structure and reduces unnecessary data handling.
    
    Signed-off-by: rooki <[email protected]>
    Pdzly committed Aug 11, 2024
    Configuration menu
    Copy the full SHA
    700476e View commit details
    Browse the repository at this point in the history
  3. Remove @builder annotation from CommentResponse

    The @builder annotation was removed from the CommentResponse record. This change likely addresses redundancy or issues caused by the builder pattern in this specific context.
    
    Signed-off-by: rooki <[email protected]>
    Pdzly committed Aug 11, 2024
    Configuration menu
    Copy the full SHA
    15a53ea View commit details
    Browse the repository at this point in the history
  4. Add instance data to PersonResponse and improve search handling

    Added InstanceResponse to PersonResponse model and integrated ACL service in person search for better permissions handling. Refactored pagination and search methods, optimizing query execution, and cleaned up unused imports.
    
    Signed-off-by: rooki <[email protected]>
    Pdzly committed Aug 11, 2024
    Configuration menu
    Copy the full SHA
    ebb7e41 View commit details
    Browse the repository at this point in the history

Commits on Aug 12, 2024

  1. Refactor comment handling and clean up unused dependencies

    Implemented a tree structure for handling comment replies, enabling nested comment representation. Removed unused dependencies and redundant fields in various controllers and services for better code maintainability. Also adjusted mappers to accommodate new replies structure, improving overall data handling.
    
    Signed-off-by: rooki <[email protected]>
    Pdzly committed Aug 12, 2024
    Configuration menu
    Copy the full SHA
    eaad440 View commit details
    Browse the repository at this point in the history
  2. Clarify comment handling in buildHierarchy method

    Updated the JavaDoc to specify that comments without replies or missing parents are placed at the end of the list. This documentation update ensures developers understand the behavior when organizing comments into a hierarchy.
    
    Signed-off-by: rooki <[email protected]>
    Pdzly committed Aug 12, 2024
    Configuration menu
    Copy the full SHA
    b79b558 View commit details
    Browse the repository at this point in the history
  3. Fix incomplete comment in SublinksCommentService.java

    Corrected the documentation comment in the build comment tree method. This ensures the explanation for the comment reply structure is clear and complete, aiding future maintenance and understanding.
    
    Signed-off-by: rooki <[email protected]>
    Pdzly committed Aug 12, 2024
    Configuration menu
    Copy the full SHA
    c4007d1 View commit details
    Browse the repository at this point in the history
  4. Fix typos in comment structuring logic documentation.

    Corrected description to clarify handling of comments with no parent or missing parent in the list. This ensures better understanding of how orphaned comments are treated in the tree building process.
    
    Signed-off-by: rooki <[email protected]>
    Pdzly committed Aug 12, 2024
    Configuration menu
    Copy the full SHA
    96cff2e View commit details
    Browse the repository at this point in the history
  5. Refactor pagination logic and improve SQL query

    Refactored pagination handling into utility methods in `PaginationUtils` for consistency and reusability. Updated SQL query in `InstanceRepository` to correct syntax and improve domain search functionality. Enhanced readability by simplifying instance response conversion logic in `SublinksInstanceService`.
    
    Signed-off-by: rooki <[email protected]>
    Pdzly committed Aug 12, 2024
    Configuration menu
    Copy the full SHA
    fa2fed4 View commit details
    Browse the repository at this point in the history
  6. Standardize API tags and refactor unauthorized exception

    Standardized the naming of API tags across multiple controllers for clarity. Refactored exception handling to use the `orThrowUnauthorized` method, reducing redundancy in authorization checks.
    
    Signed-off-by: rooki <[email protected]>
    Pdzly committed Aug 12, 2024
    Configuration menu
    Copy the full SHA
    81bc5d8 View commit details
    Browse the repository at this point in the history

Commits on Aug 13, 2024

  1. Add Swagger annotations to community models

    Introduced Swagger annotations for `CreateCommunity`, `DeleteCommunity`, and `IndexCommunity` models. This improves API documentation by providing detailed descriptions and default values for relevant fields. These changes enhance developer understanding and API usability.
    
    Signed-off-by: rooki <[email protected]>
    Pdzly committed Aug 13, 2024
    Configuration menu
    Copy the full SHA
    53dd65a View commit details
    Browse the repository at this point in the history

Commits on Aug 14, 2024

  1. Add Swagger annotations to CommentResponse and UpdateComment

    Added Swagger annotations to fields in `CommentResponse` and `UpdateComment` for improved API documentation clarity. Annotations provide thorough descriptions and specify required fields, enhancing the maintainability and user comprehension of the API.
    
    Signed-off-by: rooki <[email protected]>
    Pdzly committed Aug 14, 2024
    Configuration menu
    Copy the full SHA
    66d4ee9 View commit details
    Browse the repository at this point in the history
  2. Add Swagger annotations and rename model class

    Added Swagger annotations to enhance API documentation across multiple community and comment models. Renamed `AggregateCommentResponse` to `CommentAggregateResponse` for consistency and updated the relevant references in the service and controller files. Also included title update handling in the Community service logic.
    
    Signed-off-by: rooki <[email protected]>
    Pdzly committed Aug 14, 2024
    Configuration menu
    Copy the full SHA
    cfa198a View commit details
    Browse the repository at this point in the history

Commits on Aug 19, 2024

  1. Fix indentation in SublinksCommentAggregateController

    Corrected the indentation in the aggregate method to improve code readability. This change ensures consistent formatting and maintains coding standards.
    
    Signed-off-by: rooki <[email protected]>
    Pdzly committed Aug 19, 2024
    Configuration menu
    Copy the full SHA
    04a03be View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    6e4f6ef View commit details
    Browse the repository at this point in the history

Commits on Aug 26, 2024

  1. Remove RolePermissionService from SublinksCommentModerationController

    Refactored the SublinksCommentModerationController by removing the unused RolePermissionService dependency. This cleanup simplifies the code and removes redundant imports, enhancing maintainability.
    
    Signed-off-by: rooki <[email protected]>
    Pdzly committed Aug 26, 2024
    Configuration menu
    Copy the full SHA
    9e0f129 View commit details
    Browse the repository at this point in the history

Commits on Sep 5, 2024

  1. Add token handling to session management

    Introduced token field and related methods for handling user sessions. Added endpoints for managing session invalidation and logout, enhancing session control functionalities.
    
    Signed-off-by: rooki <[email protected]>
    Pdzly committed Sep 5, 2024
    Configuration menu
    Copy the full SHA
    2dbeae8 View commit details
    Browse the repository at this point in the history

Commits on Sep 19, 2024

  1. Format code for consistency in SublinksAnnouncementService

    Standardized formatting in the SublinksAnnouncementService class to enhance readability and maintain consistency. Primarily adjusted spacing in conditional statements and response status exception lambdas.
    
    Signed-off-by: rooki <[email protected]>
    Pdzly committed Sep 19, 2024
    Configuration menu
    Copy the full SHA
    f0d250f View commit details
    Browse the repository at this point in the history

Commits on Oct 12, 2024

  1. Add JWT token to SublinksJwtPerson object

    Included the JWT token in the SublinksJwtPerson object to ensure the token is accessible during authentication. This improvement enhances the security context by embedding the token with user authorities.
    
    Signed-off-by: rooki <[email protected]>
    Pdzly committed Oct 12, 2024
    Configuration menu
    Copy the full SHA
    1c0587a View commit details
    Browse the repository at this point in the history

Commits on Oct 18, 2024

  1. LINT

    Signed-off-by: rooki <[email protected]>
    Pdzly committed Oct 18, 2024
    Configuration menu
    Copy the full SHA
    caba87b View commit details
    Browse the repository at this point in the history
  2. Change submodule URL for 'docker' repository

    Updated the URL of the 'docker' submodule to use HTTPS instead of SSH, pointing to a new repository. This change affects the '.gitmodules' file to reference the new repository location.
    
    Signed-off-by: rooki <[email protected]>
    Pdzly committed Oct 18, 2024
    Configuration menu
    Copy the full SHA
    b855280 View commit details
    Browse the repository at this point in the history
  3. Change submodule URL for 'docker' repository

    Updated the URL of the 'docker' submodule to use HTTPS instead of SSH, pointing to a new repository. This change affects the '.gitmodules' file to reference the new repository location.
    
    Signed-off-by: rooki <[email protected]>
    Pdzly committed Oct 18, 2024
    Configuration menu
    Copy the full SHA
    8de8fcd View commit details
    Browse the repository at this point in the history
  4. Add password encryption in SublinksPersonService

    The password field from createPersonForm is now included when building a new Person object. This ensures the password gets encrypted as part of the person creation process.
    
    Signed-off-by: rooki <[email protected]>
    Pdzly committed Oct 18, 2024
    Configuration menu
    Copy the full SHA
    1da86ae View commit details
    Browse the repository at this point in the history