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

New media branch #37

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

Commits on Oct 10, 2024

  1. Updating relay settings type to allow for filtering through relay set…

    …tings for leaf file types.
    Maphikza committed Oct 10, 2024
    Configuration menu
    Copy the full SHA
    1238888 View commit details
    Browse the repository at this point in the history
  2. Improving IsFilePermitted to handle miscellanious files as we account…

    … for these in our relay panel stats.
    Maphikza committed Oct 10, 2024
    Configuration menu
    Copy the full SHA
    75f13c4 View commit details
    Browse the repository at this point in the history

Commits on Oct 11, 2024

  1. Fixing data pull bug.

    Maphikza committed Oct 11, 2024
    Configuration menu
    Copy the full SHA
    c6967d0 View commit details
    Browse the repository at this point in the history

Commits on Oct 12, 2024

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

Commits on Oct 16, 2024

  1. Configuration menu
    Copy the full SHA
    9e116e6 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    d00fb0f View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    9a6b2f6 View commit details
    Browse the repository at this point in the history

Commits on Oct 30, 2024

  1. adding subscription filter and changing address handling to be done w…

    …ith stats db as sql is easier to update and query
    Maphikza committed Oct 30, 2024
    Configuration menu
    Copy the full SHA
    280b74c View commit details
    Browse the repository at this point in the history
  2. Adding media handler

    Maphikza committed Oct 30, 2024
    Configuration menu
    Copy the full SHA
    70304d0 View commit details
    Browse the repository at this point in the history

Commits on Nov 6, 2024

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

Commits on Nov 7, 2024

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

Commits on Nov 9, 2024

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

Commits on Nov 12, 2024

  1. feat(settings): add subscription tiers support to relay settings

    - Add SubscriptionTier struct with data_limit and price fields
    - Update RelaySettings struct to include subscription_tiers field
    - Modify settings handlers to process subscription tiers data
    - Update viper config to handle subscription tiers storage
    - Ensure proper JSON serialization/deserialization of tier data
    Maphikza committed Nov 12, 2024
    Configuration menu
    Copy the full SHA
    60a33b8 View commit details
    Browse the repository at this point in the history
  2. feat: Add conditional kind 411 event creation on subscription tier up…

    …date
    
    - Enhanced  function to conditionally create a new kind 411 event if there are changes in .
    - Passed  as a parameter to  and related route handlers.
    - Improved configuration update logic and comparison checks for  to minimize unnecessary kind 411 creation.
    Maphikza committed Nov 12, 2024
    Configuration menu
    Copy the full SHA
    e2404d3 View commit details
    Browse the repository at this point in the history
  3. feat: Add conditional kind 411 event creation on subscription tier up…

    …date
    
    - Enhanced updateRelaySettings function to conditionally create a new kind 411 event if there are changes in subscription_tiers.
    - Passed store as a parameter to updateRelaySettings and related route handlers.
    - Improved configuration update logic and comparison checks for subscription_tiers to minimize unnecessary kind 411 creation.
    Maphikza committed Nov 12, 2024
    Configuration menu
    Copy the full SHA
    4872a18 View commit details
    Browse the repository at this point in the history

Commits on Nov 13, 2024

  1. It is not necessary to update kind 411 when tiers change. we need to …

    …only update kind 764/888
    Maphikza committed Nov 13, 2024
    Configuration menu
    Copy the full SHA
    29f28c0 View commit details
    Browse the repository at this point in the history

Commits on Nov 14, 2024

  1. changing kind 764 to 888

    Maphikza committed Nov 14, 2024
    Configuration menu
    Copy the full SHA
    7f9641b View commit details
    Browse the repository at this point in the history
  2. feat: Add dynamic subscription_tier tags to NIP-88 events

    - Updated createNIP88EventIfNotExists and createOrUpdateNIP88Event functions to include dynamic 'subscription_tier' tags based on values retrieved via Viper configuration.
    - Implemented type assertions and error handling for retrieving and parsing 'subscription_tiers' from configuration.
    - Ensured consistent tagging for tiers, including data limits and prices, with improved error logging for type conversions and assertions.
    Maphikza committed Nov 14, 2024
    Configuration menu
    Copy the full SHA
    d9815c3 View commit details
    Browse the repository at this point in the history

Commits on Nov 15, 2024

  1. Since kind 888 will have a lot of copies updating the subscription ti…

    …ers when the relay runner needs to make an adjustment to the tier prices it will take too much effort changing all the kind 888 to reflect this change so if we just update it on kind 411 then subscribers can pull the updated pricing fron 411
    Maphikza committed Nov 15, 2024
    Configuration menu
    Copy the full SHA
    89653d9 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    b022fad View commit details
    Browse the repository at this point in the history

Commits on Nov 16, 2024

  1. feat: add GetSubscriberByAddress method to GORM store

    Adds functionality to retrieve subscriber information by Bitcoin address.
    This method supports transaction processing by allowing lookup of subscriber
    details when processing incoming Bitcoin payments.
    
    - Implements GetSubscriberByAddress in GormSubscriberStore
    - Returns complete subscriber record including npub for payment processing
    - Handles both 'not found' and general database error cases
    Maphikza committed Nov 16, 2024
    Configuration menu
    Copy the full SHA
    a1d864c View commit details
    Browse the repository at this point in the history